The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxHtmlEditor.VideoSelectorFolderCreating Event

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

Namespace: DevExpress.Web.ASPxHtmlEditor

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

Declaration

public event FileManagerFolderCreateEventHandler VideoSelectorFolderCreating
Public Event VideoSelectorFolderCreating As FileManagerFolderCreateEventHandler

Event Data

The VideoSelectorFolderCreating event handler receives an argument of the FileManagerFolderCreateEventArgs type. The following properties provide information specific to this event.

Property Description
Cancel Gets or sets a value indicating whether the action that raised the event should be canceled.
ErrorText Gets or sets a text for the explanatory message.
Name Gets the name of the newly created folder.
ParentFolder Gets the parent folder for the newly created item.

Remarks

Prior to each time a folder is created within the Video Selector, the VideoSelectorFolderCreating event occurs, allowing you to cancel folder creation. You can use the event parameter's properties to identify the name (FileManagerFolderCreateEventArgs.Name) and the parent folder (FileManagerFolderCreateEventArgs.ParentFolder) of the newly created folder. To cancel the folder creation operation, set the FileManagerActionEventArgsBase.Cancel property to true. To show a message explaining the reason for the cancellation, specify the FileManagerActionEventArgsBase.ErrorText property.

To customize the Video Selector settings use the HtmlEditorInsertVideoDialogSettings.SettingsVideoSelector property.

See Also