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

disable only parent item (not child items) in hierarchial tree

1 Answer 285 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Rachel
Top achievements
Rank 1
Rachel asked on 20 Jun 2011, 07:22 AM
i have the following tree:
----------------------------------
a
   1
   2
b
c
   1
   2
-------------------------------
is it possible to disable parent a and NOT disable child 1 and child 2?
because isEnabled property disable a,1,2 altogether?

is it possible to disable selection of parent a
(and not affect children selection)?

thank you!
Rachel

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 22 Jun 2011, 02:20 PM
Hello Rachel,

Th IsEnabled property cannot be used in such manner, it always disables the ChildItems. The Selection or Checking could be disabled with the PreviewSelectionChanged and PreviewChecked events, furthermore you can use checkboxes or certain items only. Let us know if you need further assistance on this.

Best wishes,
Petar Mladenov
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
Rachel
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or