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

NavigationCheckedChangedEventArgs<TInfo>.LastCheckedItems Property

Returns items checked during the last operation.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public IReadOnlyList<TInfo> LastCheckedItems { get; }

#Property Value

Type Description
IReadOnlyList<TInfo>

Items checked during the last check operation.

#Remarks

The LastCheckedItems collection does not contain nodes with indeterminate state. The following code snippet displays the last checked node’s text:

Razor
Last checked node: @LastChecked

<DxTreeView Data="@Data"
            CheckMode="TreeViewCheckMode.Recursive"
            CheckedChanged="CheckedChanged">
    <DataMappings>
        <DxTreeViewDataMapping Text="Name"
                               Key="Id"
                               ParentKey="CategoryId" />
    </DataMappings>
</DxTreeView>

@code {
    string? LastChecked = "none";
    void CheckedChanged(TreeViewCheckedChangedEventArgs e) {
        var lastCheckedNode = e.LastCheckedItems.LastOrDefault();
        LastChecked = lastCheckedNode != null ? lastCheckedNode.Text : "none";
    }
}
See Also