TreeListView : Expanded/Collpased Event

3 posts, 1 answers
  1. neha
    neha avatar
    5 posts
    Member since:
    May 2010

    Posted 14 Jun 2011 Link to this post

    Hello,

    I need help regarding the TreeListView's Expand/Collpase event. I am unable to capture these events  when i click on the expander.

    The code is as follows:-

    WPF XAML File:-

      <telerik:RadTreeListView x:Name="radTreeListView" telerik:StyleManager.Theme="Windows7"
                                     AutoGenerateColumns="False" RowIndicatorVisibility="Collapsed" 
                                     ScrollViewer.VerticalScrollBarVisibility="Hidden"
                                     TreeViewItem.Collapsed="radTreeListView_Collapsed"
                                     TreeViewItem.Expanded="radTreeListView_Expanded" >
                <telerik:RadTreeListView.ChildTableDefinitions>
                    <telerik:TreeListViewTableDefinition ItemsSource="{Binding TopLevelObjects}"/>
                </telerik:RadTreeListView.ChildTableDefinitions>
                <telerik:RadTreeListView.Columns>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding LHS}"
                                       Header="Name"/>
               
                </telerik:RadTreeListView.Columns>
            </telerik:RadTreeListView>

    The two function radTreeListView_Collapsed(..) & radTreeListView_Expanded(..) are not getting called.


    Thanks,
    Neha
  2. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 14 Jun 2011 Link to this post

    Hi,

     There are no such events in RadTreeListView! To achieve your goal you should use RowIsExpandedChanged. 

    Greetings,
    Vlad
    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. UI for WPF is Visual Studio 2017 Ready
  4. Manishkumar
    Manishkumar avatar
    240 posts
    Member since:
    Feb 2009

    Posted 15 Oct 2011 Link to this post

    Hi,
    But how to know whether the row is expanded or collapsed ?
Back to Top