Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Vikrant Suman on Aug 20, 2009 02:03
open dhtmlx forum
Speed Up TreeGrid Loading

Hi,

How we can Speed Up Tree Grid Loading?
I have used addrow method to create a grid.I have also tried to create a grid using XML but the difference of loading time of addrow and XML is only few seconds.

Can we implement the demand loading in tree grid? means can we only load needed item which has to be displayed in the screen and when we click on "+" sign the next child item can be loaded using ajax.

Please provide some help/sample code to implement this type of functionality.

Thanks in advance,
Vikrant Suman
Answer posted by Support on Aug 20, 2009 06:07
>> but the difference of loading time of addrow and XML is only few seconds.
You can try to use SRND mode - it may improve loading time a lot. 
http://dhtmlx.com/docs/products/dhtmlxTreeGrid/samples/loading_big_datasets/treegrid_srnd.html?un=1250774707000

>>Can we implement the demand loading in tree grid?
Yes, it is possible
http://dhtmlx.com/docs/products/dhtmlxTreeGrid/samples/initialization_loading/treeGrid_dynamic.html?un=1250774806000
http://dhtmlx.com/docs/products/dhtmlxGrid/doc/guide.html#grid_dloadTreeGrid

full source code of above samples, including server side code, can be checked in the samples folder of TreeGrid package