I am using json formatted data to retrieve from table.
tree = new dhtmlXTreeObject(“divObj”, “100%”, “100%”, 0);
tree.enableSmartRendering(true, 50);
tree.setDataMode(“json”);
tree.loadJSON(…);
I have more then 500 data.
So i want to use smartrendering.
can u please guid us, what is the json format which support smartrendering.
i mean how to give total_count, pos to json.
You do not need “total_count” and “pos” attributes in case of static Smart Rendering mode.
In case you dynamic smart rendering mode in tree you also do not need “total_count” and “pos” attributes. Please find more information here docs.dhtmlx.com/doku.php?id=dhtm … erformance
Can you please give an example how i will load the parent of the tree dynamically.
I am successfully loading the child of the tree dynamicaly.
since i have more then 500 parents in the tree, i want to load the parent dynamic too.
In case of grid we have to give total_count, pos to the grid. so that grid object know how many data are there in the grid and it loaded dynamically on scroll event.
how the tree will work if we will not provide total_count, pos. if there is any other way for tree then please let me know.
if possible then please give me an example. i am using the below json data format.
i have also Commercial license of dhtmlx.