This is a migrated thread and some comments may be shown as answers.

[Solved] Disable check boxes but not expand/collapse

2 Answers 65 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Patrick Rubeski
Top achievements
Rank 1
Patrick Rubeski asked on 27 Apr 2011, 11:56 PM
I was wondering if anyone know of a way to disable a tree nodes check box and name but not disable the expand/collapse feature of that node.
We want to have nodes uncheckable, but sill expandable.  Is this possible?  
Thanks in advance for any input.

2 Answers, 1 is accepted

Sort by
0
Raj
Top achievements
Rank 1
answered on 27 Apr 2011, 11:57 PM
I'm having the same issue. it would be great help if anyone has the solution for the same.
0
Atanas Korchev
Telerik team
answered on 28 Apr 2011, 09:40 AM
Hello,

 There is no built-in feature to allow this. jQuery can be used though to achieve the same. Subscribe to the OnLoad event of the treeview and disable all of its checkboxes:

function onLoad() {
   $(this).find(":checkbox").attr("disabled", "disabled");
}

Kind regards,

Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
Patrick Rubeski
Top achievements
Rank 1
Answers by
Raj
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or