Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by raj on Mar 19, 2008 00:18
open dhtmlx forum
dhtmlTree loading issue

I m using the dhtmlxTree standard edition for constructing a tree structure with 9 levels .

The tree structure comes up without any issue when the number of records (that is nodes in the tree) is 5000 till the level 6.

But , when the number of records / nodes in the tree increases for same level (till 6th level) for example 6000 records, Out of Memory Exception occurs while building the tree.

Kindly suggest us an approach for this issue.

Thanks in advance.
Answer posted by Support on Mar 19, 2008 03:09
There is no any hardcoded limitation on size of tree, and 6000 record is not enough to cause "out of memory" error. ( the samples of tree operates with 50000 item set without such errors )
Which mode of tree you are using?
In case of using smartXMLParsing or smartRendering modes tree must process such dataset without problems, most probably issue caused not by count of records, but because of some data specific issue.
Please be sure that all data in you XML has unique IDs , in other case different kinds of error can appears.

If problem still occurs for you - please send any kind of sample where problem can be reconstructed ( you can send it directly to support@dhtmlx.com )
Answer posted by raj on Mar 19, 2008 04:10

Hi, I am using smartXMLParsing mode to construct the tree, I am following the below way to build the tree.

In my tree I have 9 levels, to build these levels I am using nested for loops, I am retreiving the data through root element, this contains list of elements and those elements also contains list of elements of next level, so and so...

while retreiving the data I have declared local variables and those were used while building the tree.

Is it a issue of large data or any problem with the way I am following to build the tree?

please suggest me to regarding this...

Thanks,

Raj

Answer posted by Support on Mar 19, 2008 06:59
I think problem may be caused by the way how tree's xml  built. 6000 items are definitely not the problem of mentioned error, there is no any limitation on count of levels as wells.
Most probably problem caused by not unique item ID or by some leak in xml building code logic.

If problem persists, please, send us the sample to support@dhtmlx.com