The user can get an XML representation (as a string) of the tree using the method serializeTree():
tree.serializeTree();
Also there is a possibility to return the tree as a JSON string like this:
tree.serializeTreeToJSON();
XML serialization can be easily configured in the following way:
tree.setSerializationLevel(userData,fullXML,escapeEntities,userDataAsCData,DTD);
The parameters are as follows:
The user can prevent caching in IE by adding random value to URL string with the help of the preventIECaching() method:
tree.preventIECaching(true/false); // false by default
There is a possibility in dhtmlxTree to register an XML entity for replacement of special symbols during the initialization of the tree (the default ones are: ampersand, "less then" and "greater then" symbols):
tree.registerXMLEntity(rChar,rEntity);
The parameters are the following:
There is a simple method that allows the user to remove the tree completely and to clear memory:
tree.destructor();
Back to top