Articles in this section
Category / Section

How to select more than one item in TreeViewAdv?

1 min read

To select more than one item in TreeViewAdv, set the AllowMultiSelect property of the TreeViewAdv to True. When you enable this property, the TreeViewAdv supports multiple selection by using the CTRL or SHIFT keys.

You can achieve the above using the following example.

XAML

<syncfusion:TreeViewAdv Name="treeViewAdv" AllowMultiSelect="True" >
            <syncfusion:TreeViewItemAdv Header="Root1">
                <syncfusion:TreeViewItemAdv Header="Root1Item1"/>
                <syncfusion:TreeViewItemAdv Header="Root1Item2"/>
                <syncfusion:TreeViewItemAdv Header="Root1Item3"/>
            </syncfusion:TreeViewItemAdv>
           <syncfusion:TreeViewItemAdv Header="Root2">
                <syncfusion:TreeViewItemAdv Header="Root1Item1"/>
                <syncfusion:TreeViewItemAdv Header="Root1Item2"/>
                <syncfusion:TreeViewItemAdv Header="Root1Item3"/>
            </syncfusion:TreeViewItemAdv>
   </syncfusion:TreeViewAdv>

C#

treeViewAdv.AllowMultiSelect = true;

The following screenshot displays the selection of multiple items.

Figure 1: Selection of multiple items

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied