Toggle Button Visibility

2 posts, 0 answers
  1. Jeff
    Jeff avatar
    12 posts
    Member since:
    Sep 2012

    Posted 04 Oct 2012 Link to this post

    I have a tree that is populated by self referencing data. One of my tasks is to select the item in the tree when my ToggleButton is "checked" or "pressed". How does the ToggleButton know when to disappear for items that have no children?
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 12 Oct 2012 Link to this post

    Hi Jeff,

     Could you please elaborate more on your scenario? Is this actually the desired scenario :
    How does the ToggleButton know when to disappear for items that have no children?
    ToggleButton placed only on the RadTreeViewItems that have children ? If it is something similar you can have different HeaderTemplates for the items and use the RadTreeView's ItemTemplateSelector. You can read more about it in this help article. The button in the template may change a ViewModel's property bound to the Visibility of other control in the HeaderTemplate.

    Greetings,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top