Disable/hide top level checkboxes

I have a tree that is created from a php function, the function returns json and the tree is created with no problems. Is there an easy way to disable or hide all top level and second level checkboxes?

i know i can call a function to hide them one at a time but just wondered if there is an easy way to do this


You can use “nocheckbox” attribute of “item” tag ( nocheckbox property in case of json ) - items with such property will not have checkboxes.