RadTreeListView in UserControl Access SelectedItems collection

1 Answer 28 Views
TreeListView
Jonathan
Top achievements
Rank 1
Iron
Jonathan asked on 24 Apr 2022, 09:45 PM | edited on 26 Apr 2022, 08:35 AM

Is there a quicker way of selecting / deselecting groups of children items in RadTreeListView ??


if (e.AddedItems.Count > 0)
            {
                foreach (NodesModel i in e.AddedItems)
                {
                    if (i.Name != "WHDLoad")
                    {
                        if (i.Items.Count > 0)
                        {
                            foreach (NodesModel x in i.Items)
                            {
                                {
                                    //x.IsSelected = true;
                                    Nodes.SelectedItems.Add(x);
                                }
                            }
                        }
                    }
                }
            }

1 Answer, 1 is accepted

Sort by
0
Jonathan
Top achievements
Rank 1
Iron
answered on 26 Apr 2022, 10:12 PM
sorted
Tags
TreeListView
Asked by
Jonathan
Top achievements
Rank 1
Iron
Answers by
Jonathan
Top achievements
Rank 1
Iron
Share this question
or