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