Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Graham Simmons on Apr 09, 2009 04:55
open dhtmlx forum
dhtmlxTree

I'm using the latest pro tree version and have a few issues ...

Q1) Why would the highlighting of nodes stop? I have a new tree and the highlighting works fine. When I load a tree with data the highlighting stops.

Q2) How can I save the tree to JSON and save the image information too (saving as XML you can use setSerializationLevel)? I'm creating my tree from JSON data and saving it back to JSON, because I cannot use any ActiveX objects. However, saving the tree to JSON doesn't save the images. I have nodes of certain types which is represented by a new image I've created.

Thanks for your help.
Answer posted by Alex on Apr 09, 2009 07:05

Hello, 

>> Why would the highlighting of nodes stop?

Please, check that dhtmlxtree.css css is included. 

Also the issue can be caused by additional item styles which are set in the xml

>> How can I save the tree to JSON and save the image information too

By the default the additional information (images,userdata,etc.) isn't serialized.

But you can enable this serialization by setSerializationLevel method: 

tree.setSerializationLevel(false,true);