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

parent node non selectable

1 Answer 26 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Adrian Pay
Top achievements
Rank 1
Adrian Pay asked on 30 Nov 2011, 12:05 PM
how can i be able to make the parent node of the treeview non selectable. 

+ Parent <-- non selectable
|-----item 1 <-- selectable
|-----item 2 <-- selectable

and what i mean by non selectable is even when i hover on it, there is no hover animation as if it was disabled but not greyed out.

thanks!

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 05 Dec 2011, 10:57 AM
Hi Adrian Pay,

 In order to prevent the selection you can use the PreviewSelectionChanged event and set e.Handled = true if the "clicked" item should not be selected. As for the MouseOver/Selection colors you can check out this forum and the attached project in it. Please let us know if this helped you.

All the best,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
TreeView
Asked by
Adrian Pay
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or