RadzenTree - with checkboxes - disable/read only

Hello!

I am building a permission tree with checkboxes using the RadzenTree component. Is there any way to disable or make the whole tree component read only? If a user has permission to view but not edit, we need to be able to show the RadzenTree with the parent and children selected/not selected based on the profile they are viewing but the user shouldn't be able to uncheck or check anything.

Thanks!

There isn't disabled state/property for the Tree or TreeItem component however with this simple CSS you can implement it very easily:

li.rz-treenode {
    pointer-events: none;
    opacity: 0.5;
}

1 Like