Categories | Question details Back To List | ||
Serialization - dhtmlxTree
Is there a way to omit deep branches that were opened but no checkboxes were checked deep inside those branches. (Include only first level of the tree and deep branches with checked checkboxes only).
This functionality is to speed up the time the tree is generated from the previously serialized tree. The omited branches would appear dynamically using setXMLAutoLoading when user clicks to expand them. I am using dhtmlxTree. Thank you very much for your help. Answer posted on Nov 22, 2007 01:59 Basically deep of serialization can't be controlled by API, so any changes must be made directly in code You can look at next code line dhtmlxtree.js , line 111 for (var i=0; i<itemNode.childsCount; i++) out+=this._serializeItem(itemNode.childNodes[i]); this is code called recursive to itterate through all tree, so any kind of check can be added here to skip branches |