Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxTreeView.AfterExpand Event

Fires after a node has been expanded.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public Action<TreeViewNodeEventArgs> AfterExpand { get; set; }

#Event Data

The AfterExpand 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.

#Remarks

The AfterExpand event fires after a node has been expanded. The following code sample handles the AfterExpand event.

Razor
<DxTreeView AfterExpand="@AfterExpand">
    ...
</DxTreeView>

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