NavigationCheckedChangedEventArgs<TInfo>.LastUncheckedItems Property
Returns items unchecked during the last operation.
Namespace: DevExpress.Blazor.Base
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
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:
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