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

Binding to IsExpanded - is it supported?

2 Answers 40 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Tomasz
Top achievements
Rank 1
Tomasz asked on 29 May 2013, 03:41 PM
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 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 29 May 2013, 03:50 PM
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.

0
Tomasz
Top achievements
Rank 1
answered on 31 May 2013, 07:19 AM
Thanks a lot for the hint, it works.
Tags
TreeListView
Asked by
Tomasz
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Tomasz
Top achievements
Rank 1
Share this question
or