Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by IRH on Mar 27, 2009 17:46
open dhtmlx forum
DHTMLXTree loadXMLString with enableSmartRendering / enableSmartXMLParsing

I am loading a tree with 7,000 nodes using loadXMLString. It takes 5 minutes or more to load the tree.

I have tried setting enableSmartXMLParsing = true or enableSmartRendering = true but the loading time is exactly the same.

Also, in the samples the syntax is: "tree.enableSmartXMLParsing(true)" but I end up with no data loaded so I used "tree.enableSmartXMLParsing = true". Is this incorrect?

Can I combine loadXMLString with enableSmartRendering or enableSmartXMLParsing?

Thank you in advance
Answer posted by Alex (support) on Mar 30, 2009 05:23

>> Also, in the samples the syntax is: "tree.enableSmartXMLParsing(true)" but I end up with no data loaded so I used "tree.enableSmartXMLParsing = true". Is this incorrect?

enableSmartXMLParsing is method. It isn't property. So, the correct syntax is:

tree.enableSmartXMLParsing(true);

>> Can I combine loadXMLString with enableSmartRendering or enableSmartXMLParsing?

Yes, you can.

7000-nodes tree is not very big. Smart XML Parsing is enough in this case. But if you try to open all nodes at once, the rendering will take rather much time and additional methods won't help in this case.