To allow end-users to select nodes, enable the SettingsSelection.Enabled option. Nodes will display selection cells that contain check boxes. End-users can check or uncheck these check boxes to select or unselect the corresponding nodes.
To enable end-users to select all nodes displayed within the TreeList, set the SettingsSelection.AllowSelectAll property to true. This displays a check box within the column header panel used to select/de-select all nodes. In this demo, to show/hide this check box, use 'Show Select All check box'.
The TreeList supports recursive node selection, which is enabled by the SettingsSelection.Recursive option. When recursive selection is enabled:
- a parent node is automatically selected, if all its child nodes are selected. Deselecting a child node automatically unselects its parent node(s);
- selecting a parent node automatically selects all its children.
In this demo, use the 'Recursive' check box to enable/disable recursive selection.
Local Copy of this Demo To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer. |
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxTreeListDemos |