FileManagerSettings.FolderCreating Property

Fires on the server side before a folder is created and allows you to cancel the action.

Namespace: DevExpress.Web.Mvc

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

Declaration

public FileManagerFolderCreateEventHandler FolderCreating { get; set; }

Property Value

Type Description
FileManagerFolderCreateEventHandler

A FileManagerFolderCreateEventHandler delegate method to be called when a folder is about to be created.

Remarks

Implement a FileManagerFolderCreateEventHandler delegate method and assign it to the FolderCreating property. For more implementation details, refer to the FileManagerFolderCreateEventHandler delegate description.

Before each time a folder is created on the server side, the FolderCreating event occurs, allowing you to cancel folder creation. You can use the event parameter’s properties to identify a name (FileManagerFolderCreateEventArgs.Name) and a parent folder (FileManagerFolderCreateEventArgs.ParentFolder) of the newly created folder. To cancel the create operation, set the FileManagerActionEventArgsBase.Cancel property to true. In order to show a message explaining the reason for the cancellation, specify the FileManagerActionEventArgsBase.ErrorText property.

See Also