Is it possible to hide node depend on the attribute value

Hi,

Is it possible to hide node depend on the attribute value of xml in dhtmlx tree?

Please let me know your suggestions.

Thanks in adavance.

Hi
It is impossible to hide items in the tree, but you can use attributes. I.e.:

<?xml version="1.0" encoding="iso-8859-1"?> <tree id="0"> <item text="Books" id="books"> <item text="Stephen King" id="sk" type="aaa"></item> <item text="Dan Brown" open="1" id="db" type="bbb"></item> <item text="Mary Janice Davidson" id="mjd" type="ccc"></item> </item> </tree>
scpirt:

tree.attachEvent("onClick", function(id){ if(tree.getAttribute(id,"type") == "aaa"){...do something...} })