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

property IsExpandable doesn't work correct

0 Answers 75 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Konstantin
Top achievements
Rank 1
Konstantin asked on 10 Oct 2012, 12:40 PM
I am using a RadTreeListView and MVVM pattern. When I expand new item in my tree some items lost their expanders. 
 private void RadTreeListView_RowLoaded(object sender, RowLoadedEventArgs e)
        {
            TreeListViewRow row = e.Row as TreeListViewRow;

 if (row != null)
            {
                row.IsExpandable = !((TreeNodeViewModel)row.DataContext).IsEmpty;
            }
        }

TreeNodeViewModel - it's an item of tree. 

No answers yet. Maybe you can help?

Tags
TreeListView
Asked by
Konstantin
Top achievements
Rank 1
Share this question
or