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>.LastUncheckedItems Property

Returns items unchecked during the last operation.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

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

#Property Value

Type Description
IReadOnlyList<TInfo>

Items unchecked during the last check operation.

#Remarks

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

Razor
Last unchecked node: @LastUnchecked

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

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