Back to Devexpress

DxTreeView.AfterExpand Event

blazor-devexpress-dot-blazor-dot-dxtreeview-29a0ffdf.md

latest1.5 KB
Original Source

DxTreeView.AfterExpand Event

Fires after a node has been expanded.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[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:

PropertyDescription
CausedByAPIObsolete. Specifies whether an event was triggered by a user action or programmatically.
NodeInfoReturns information about a node related to the event.
ReasonReturns 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

DxTreeView Class

DxTreeView Members

DevExpress.Blazor Namespace