Disable all checkboxes

Hi,
Is there a way to disable all checkboxes with a single method ?
I’ve a tree with 8000 items, and if I want to disable them without reloading the tree, I use disableCheckbox method 8000 times…

Is there another way ?

Thanks

Hi
There is no native approach.
You need to create a function, which will be iterate all the nodes and apply this method to each of them.