but i dont have that js file can you please send me the js file,
This is part of pro edition of dhtmlxtree
If you are have pro version - please check codebase/ext/dhtmlxtree_li.js , it it still somehow missed - please contact us directly at firstname.lastname@example.org and provide your ref. number - we will send you necessary js file.
>> also i want to disable the tree node on some condition
There is no native support for such use-case, you can use js command ( lockItem ) instead of attribute and place all necessary logic in js code.
if (some_condition) tree.lockItem(“top50”);