ASPxTreeList.SelectionChanged Event
Fires after an end user changed selection.
Namespace: DevExpress.Web.ASPxTreeList
Assembly: DevExpress.Web.ASPxTreeList.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public event EventHandler SelectionChanged
#Event Data
The SelectionChanged event's data class is EventArgs.
#Remarks
The ASPxTreeList control allows you to select multiple nodes. The tree list provides selection cells …
… or the following APIs to select/deselect nodes:
Knowledge-Base Article: ASPxTreeList - Neither client-side and server-side SelectionChanged events are triggered when the client-side SelectNode method is called
Handle the ASPxTreeList.SelectionChanged
event to handle a selection change.
protected void Tree_SelectionChanged(object sender, EventArgs e)
{
int x = 0;
for (x = 0; x <= Tree.Nodes[0].ChildNodes.Count - 1; x++) {
Tree.Nodes[0].ChildNodes[x].Selected = true;
}
}
Note
The tree list does not fire the Selectionfalse
.