Hi, I'm trying to simulate the read-only state by hiding the checkboxes controls.
I can't find a way to hide them so I recreate the component again, with the option selection.mode='tree', "but" the recreation is not clean, not all nodes are recreated and show the checkbox.
I have created a gif to show it:

How could I do it?
What am I doing wrong?
Any help would be welcome.
Thank you.