Skip to main content

FileManagerSettings.ItemRenaming Property

Fires on the server side before an item is renamed and allows you to cancel the action.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public FileManagerItemRenameEventHandler ItemRenaming { get; set; }

Property Value

Type Description
FileManagerItemRenameEventHandler

A FileManagerItemRenameEventHandler delegate method to be called when a folder is about to be renamed.

Remarks

Each time an item is going to be renamed on the server side, the ItemRenaming event occurs, allowing you to cancel the action. The event parameter’s FileManagerItemRenameEventArgs.Item property identifies the item that is being processed. The new name of the item can be obtained via the FileManagerItemRenameEventArgs.NewName property. 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.

See Also