Skip to main content

FileManagerSettings.ItemCopying Property

Allows you to cancel copying an item.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public FileManagerItemCopyEventHandler ItemCopying { get; set; }

Property Value

Type Description
FileManagerItemCopyEventHandler

A FileManagerItemCopyEventHandler delegate method to be called when a folder is about to be copied within the FileManager.

Remarks

Implement a FileManagerItemCopyEventHandler delegate method and assign it to the ItemCopying property. Each time an item is going to be copied on the server side, the FileManagerItemCopyEventHandler delegate method is called, allowing you to cancel the item copy.

The method parameter’s FileManagerItemCopyEventArgs.Item property identifies the item that is being processed. The new location of an item can be obtained via the FileManagerItemCopyEventArgs.DestinationFolder property. To cancel the copy operation, set the FileManagerActionEventArgsBase.Cancel property to true. To show the message explaining the reason for the copy cancellation, specify the FileManagerActionEventArgsBase.ErrorText property.

See Also