Categories | Question details Back To List | ||
Performance question: DHTMXLTree I have a question about the performances of the tree... When having a rather large tree-structure loaded in the browser what can one do to avoid slow downs like the ones I am experiencing with my tree? Some general suggestions? Memory allocation optimizations? Something? Answer posted by Support on Nov 03, 2008 07:46 If your tree has not many nodes per level,
you can use Smart XML Parsing (the most preferable):
tree.enableSmartXMLParsing(true);
http://www.dhtmlx.com/docs/products/dhtmlxTree/samples/loading_processing_data/pro_smart_parsing.html
If there are a lot of nodes on one level in the tree, you can
try to use Smart Rendering functionality (dhtmlxtree_srnd.js should be attached):
tree.enableSmartRendering(true); http://www.dhtmlx.com/docs/products/dhtmlxTree/samples/loading_processing_data/pro_smart_rendering.html Both functionalities work are available only in PRO edition. Their idea - data are loaded at once, but parsed by portions (the detailed information can be found in the documentation http://www.dhtmlx.com/docs/products/dhtmlxTree/doc/alpha.html). Or you can use dynamic loading functionality (included into Standard edition): http://www.dhtmlx.com/docs/products/dhtmlxTree/doc/dyn_loading.html http://www.dhtmlx.com/docs/products/dhtmlxTree/samples/loading_processing_data/tree_dyn_loading.html |