Tino
August 3, 2015, 8:20am
#1
Hello everybody,
I’m having an issue when expanding a node using DHTMLXTreeGrid : the expanding can be really slow (over ten seconds when expanding one element).
The issue occurs only when i have a big amount of levels and/or some levels + big amount of rows.
For example: If I have over 1000 rows + 4 levels, expanding an element will take more than 10 secs.
I read some things about “dynamic loading” but I don’t get if it will help me and how to use it with my configuration.
PS: I’m using the treeGrid to be able to use multi-grouping.
My configuration :
Version : 3.6
Using : Java (array created in JSON)
Tell me if some details are missing.
I can’t give a example of my problem. Sorry for this
Thanks in advance !
In your case it is recommended to use the dynamic loading of the child nodes:
docs.dhtmlx.com/treegrid__manipu … intreegrid
and a smart rendering:
docs.dhtmlx.com/api__link__dhtml … ering.html
or a smart parsing mode:
docs.dhtmlx.com/treegrid__manipu … intreegrid
It will increase the performance of your treegrid.
Tino
August 4, 2015, 2:26pm
#3
Thanks a lot for the quick reply.
I also add that the speed of expanding is also related to the number of columns (over 20 in my case)
I will try to use the dynamic loading because the other arguments don’t seem to be enough.
I don’t get what it changes though if I already loaded all datas.
Must i put xmlkids =“1” for each node or only the last level ?
What should I put in the “xxx” when giving the “parent” attribute ?
How does it work with json?
Thanks
Tino
August 4, 2015, 3:57pm
#4
Update: The issue has been fixed by removing the attachEvent “onOpenEnd”.
The time was long even though the function called was empty.
I could find a workaround to do what I needed to do with this event.
Thanks a lot for everything