TreeListDataItemDeletingEventArgs.Cancel Property
Specifies whether to remove the processed data item from selection.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.2.dll
NuGet Package: DevExpress.Blazor
Declaration
public bool Cancel { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
|
Remarks
The DataItemDeleting event fires when a user confirms the delete operation in the delete confirmation dialog. Handle this event to check user access permissions, delete a data item from the underlying data source, and reload TreeList data.
After a DataItemDeleting event handler is processed, the TreeList removes the data item from the selection. If you do not delete this item from the data source, set the Cancel property to true to keep the item’s selection state.