Skip to main content
A newer version of this page is available. .

FileManagerSettings.ItemMoving Property

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

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v19.2.dll

Declaration

public FileManagerItemMoveEventHandler ItemMoving { get; set; }

Property Value

Type Description
FileManagerItemMoveEventHandler

A FileManagerItemMoveEventHandler delegate method to be called when an item is about to be moved.

Remarks

Each time an item is going to be moved on the server side, the ItemMoving event occurs, allowing you to cancel the move. The event parameter’s FileManagerItemMoveEventArgs.Item property identifies the item that is being processed. The new location of an item can be obtained via the FileManagerItemMoveEventArgs.DestinationFolder property. To cancel the move operation, set the FileManagerActionEventArgsBase.Cancel property to true. In order to show a message, explaining the reason for the move cancellation, specify the FileManagerActionEventArgsBase.ErrorText property.

See Also