Skip to main content

FileManagerActionEventArgsBase.ErrorText Property

Gets or sets a text for the explanatory message.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.1.dll

NuGet Package: DevExpress.Web


public string ErrorText { get; set; }

Property Value

Type Description

A String value that contains the explanatory text.


The FileManagerActionEventArgsBase object is passed to the events that fire before specific actions. You can cancel the action which is about to be performed, setting the FileManagerActionEventArgsBase.Cancel property to true. Specify the ErrorText property to show the message, explaining the reason for the event cancellation.


The code below demonstrates how you can handle the FolderCreating event, to prevent creation of child folders for the root folder.

The image below shows the result.

ASPxFileManager - FolderCreating

protected void ASPxFileManager1_FolderCreating(object source, DevExpress.Web.FileManagerFolderCreateEventArgs e) {
      if (e.ParentFolder.FullName == "Files")
            e.Cancel = true;
            e.ErrorText = "You cannot create child folders for the root folder";
See Also