Skip to main content

ASPxTreeList.SelectionChanged Event

Fires after an end user changed selection.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v24.1.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

TreeList - Select Multiple Nodes

… 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.

<dx:ASPxTreeList ID="Tree" runat="server" OnSelectionChanged="Tree_SelectionChanged" >
    <Columns>
    ...
    </Columns>
    <SettingsBehavior ProcessSelectionChangedOnServer="true" />
    <SettingsSelection Enabled="true" />
</dx:ASPxTreeList>

Note

The tree list does not fire the SelectionChanged server-side event and instantly fires the the ASPxClientTreeList.SelectionChanged client-side event to handle a selection change if the TreeListSettingsBehavior.ProcessSelectionChangedOnServer argument is set to false.

See Also