FileManagerSettings.ItemDeleting Property
Fires on the server side before an item is deleted and allows you to cancel the action.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
Property Value
Type | Description |
---|---|
FileManagerItemDeleteEventHandler | A FileManagerItemDeleteEventHandler delegate method to be called when an item is about to be deleted. |
Remarks
Each time an item is going to be deleted on the server side, the ItemDeleting event occurs, allowing you to cancel the action. The event parameter’s FileManagerItemDeleteEventArgs.Item property identifies the item that is being processed. To cancel the delete operation, set the FileManagerActionEventArgsBase.Cancel property to true. In order to show a message, explaining the reason for the delete cancellation, specify the FileManagerActionEventArgsBase.ErrorText property.