This question is locked. New answers and comments are not allowed.
Hi Telerik,
I have a need to disable the treeview item conditionally (which works fine with the latest build). But disabling the item will disable two things: the checkbox (if applicable) and the item text. I have a request to actually keep the text enabled while the checkbox remains to be disabled so that the user can highlight/select the item and perform some other actions. But we don't want them to check/uncheck the item.
I guess what I need is probably a document ready function which will enable all treeview item text (again text only) after the page is ready. Checkboxes will remain disabled if it's meant to be disabled. I don't want to modify the telerik.treeview.js if at all possible since we will forget that it's a custom one and the change will get overwritten.
So I would probably need a logic to enable the item text for the tree view items so that they can be selected.
Please help.
Thank you so much.
I have a need to disable the treeview item conditionally (which works fine with the latest build). But disabling the item will disable two things: the checkbox (if applicable) and the item text. I have a request to actually keep the text enabled while the checkbox remains to be disabled so that the user can highlight/select the item and perform some other actions. But we don't want them to check/uncheck the item.
I guess what I need is probably a document ready function which will enable all treeview item text (again text only) after the page is ready. Checkboxes will remain disabled if it's meant to be disabled. I don't want to modify the telerik.treeview.js if at all possible since we will forget that it's a custom one and the change will get overwritten.
So I would probably need a logic to enable the item text for the tree view items so that they can be selected.
Please help.
Thank you so much.