Enable/Disable expansion

3 posts, 1 answers
  1. Doug
    Doug avatar
    19 posts
    Member since:
    Jun 2010

    Posted 11 May 2011 Link to this post

    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. Answer
    Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 16 May 2011 Link to this post

    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
  3. DevCraft banner
  4. Doug
    Doug avatar
    19 posts
    Member since:
    Jun 2010

    Posted 16 May 2011 Link to this post

    yes thank you, that solved it. 
Back to Top