Binding to IsExpanded - is it supported?

3 posts, 0 answers
  1. Tomasz
    Tomasz avatar
    2 posts
    Member since:
    Aug 2012

    Posted 29 May 2013 Link to this post

    Hi,

    I browsed the forum for the issue with binding to IsExpanded property and there is some confusion. Can you clarify current status?

    More details:
    TreeListView is used to show hierarchy of objects.

     

     

    <telerik:RadTreeListView.ChildTableDefinitions

     

     

     

    >

     

     

     

    <telerik:TreeListViewTableDefinition ItemsSource="{Binding Children}"/>

     

     

     

    </telerik:RadTreeListView.ChildTableDefinitions>

     


    Children is notifying property of type IList<myclass>.

    I'm attaching following Style to RowStyle property of treelistview.

     

     

    <Style x:Key="TreeRowStyle" TargetType="telerik:TreeListViewRow">

     

     

     

    <Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" />

     

    </

     

     

    Style>

     


    Should it work or not?

    Setting IsExpanded to fixed value 'true' doesn't help.

    I'm using binaries version 2012.3.1404.1050

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 29 May 2013 Link to this post

    Hello,

    With our internal build (version 2012.3.1321.40) we have introduced two new properties - IsExpandedBinding and IsExpandableBinding which can be used in your scenario. For example you can check our online demos.
     
    Would you upgrade to a most recent version so that you could benefit from those properties?

    Regards,
    Didie
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Tomasz
    Tomasz avatar
    2 posts
    Member since:
    Aug 2012

    Posted 31 May 2013 Link to this post

    Thanks a lot for the hint, it works.
Back to Top