Skip to main content

DxTreeView.AfterCollapse Event

Fires after a node has been collapsed.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor


public Action<TreeViewNodeEventArgs> AfterCollapse { get; set; }

Event Data

The AfterCollapse event's data class is TreeViewNodeEventArgs. The following properties provide information specific to this event:

Property Description
CausedByAPI Obsolete. Specifies whether an event was triggered by a user action or programmatically.
NodeInfo Returns information about a node related to the event.
Reason Returns the reason why the TreeView node’s state changes.


The AfterCollapse event fires after a node has been collapsed. The following code sample illustrates how to handle the AfterCollapse event.

<DxTreeView AfterCollapse="@AfterCollapse">

@code  {
    void AfterCollapse(TreeViewNodeEventArgs e) {
        // your code
See Also