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

Enable/Disable expansion

2 Answers 39 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 11 May 2011, 02:06 PM
Hello, 

I want to be able to make it so that a tree view item can only expand or collapse based on a bound property.  My data template has a checkbox or radio button, and when not checked, I don't want to allow the item to be expanded.  I've tried various things (e.g. a styleselector and setting the expanderstyle with property isenabled=false/true) but can't seem to achieve the desired functionality. 

Thanks

Doug

2 Answers, 1 is accepted

Sort by
0
Accepted
Petar Mladenov
Telerik team
answered on 16 May 2011, 02:15 PM
Hello Doug,

I prepared a sample project for you that uses the PreviewExpanded event of the RadTreeView? Could you please give it a try and let us know if it points you in the right direction ?

Greetings,
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
0
Doug
Top achievements
Rank 1
answered on 16 May 2011, 08:51 PM
yes thank you, that solved it. 
Tags
TreeView
Asked by
Doug
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Doug
Top achievements
Rank 1
Share this question
or