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 deselect the corresponding nodes.
To enable end-users to select all nodes displayed within the DevExpress ASP.NET Tree List (ASPxTreeList), set the SettingsSelection.AllowSelectAll property to true. This displays a check box within the column header panel used to select/deselect all nodes. In this demo, to show/hide this check box, select the Show Select All check box option.
The ASPxTreeList supports recursive node selection, which is enabled by the SettingsSelection.Recursive option. When recursive selection is enabled, the following apply.
- a parent node is automatically selected if all of its child nodes are selected. Deselecting a child node automatically unselects its parent node(s).
- selecting a parent node automatically selects all of its children.
- a node that has selected and unselected child nodes is displayed with a grayed check box.
In this demo, use the 'Recursive' check box to enable/disable recursive selection. The number of selected nodes is displayed below the ASPxTreeList.