property IsExpandable doesn't work correct

1 posts, 0 answers
  1. Konstantin
    Konstantin avatar
    2 posts
    Member since:
    Oct 2012

    Posted 10 Oct 2012 Link to this post

    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. 

Back to Top