Skip to main content
All docs
V24.2

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

TreeListDataItemDeletingEventArgs.Cancel Property

Specifies whether to remove the processed data item from selection.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public bool Cancel { get; set; }

#Property Value

Type Description
Boolean

true to remove the processed data item from selection; false to keep the item’s selection state.

#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.

See Also