Skip to main content


Optional. Defines that the structure of a tree is being built while opening items

autoload?: string;


const tree = new dhx.Tree("tree_container", {autoload: "/backend/autoload"});"/backend/autoload?id=tree");

Related sample: Tree. Autoload


To control the process of auto-load, use the related beforeItemLoad and afterItemLoad events

Here is an example of sending an HTTP GET request to the server using the Express library:

app.get("/backend/autoload", (req, res) => {
const currentData = treeData.filter(i => i.parent ===;
return res.send(currentData);