Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
  [Expand]Reporting
  [Expand]Chart Control
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Site Navigation and Layout
  [Expand]File Management
  [Expand]Multi-Use Site Controls
  [Expand]Scheduler
  [Collapse]HTML Editor
    Deployment of ASPxHtmlEditor
    Main Features
    Getting Started
    ASPxHtmlEditor Designer
   [Collapse]Concepts
    [Expand]View Modes
    [Expand]Get and Set HTML
    [Expand]Toolbars
    [Collapse]Dialogs
      Audio Dialogs
      Change Element Properties Dialog
      Flash Dialogs
      Image Dialogs
      Link Dialogs
      Paste from Word Dialog
      Placeholder Dialogs
      Spell Checking Dialog
      Table Dialogs
      Video Dialogs
      YouTube Video Dialogs
      Custom Dialogs
     Context Menu
     Placeholders
    [Expand]Content Filtering and Validation
    [Expand]Layout
     Searching Content
     Client-Side Commands
     Keyboard Shortcuts
     Import and Export
     Support for SharePoint
   [Expand]Visual Elements
   [Expand]Examples
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gauges
  [Expand]Data Editors
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Custom Dialogs

In addition to built-in dialogs available in ASPxHtmlEditor, you can use any number of custom dialogs, which can be easily added at both design and runtime.

To add custom dialogs to an editor, use its ASPxHtmlEditor.CustomDialogs collection. A custom dialog is represented by an HtmlEditorCustomDialog object, which provides the following settings.

You can associate a custom dialog with a toolbar item, which when clicked, invokes the dialog. To accomplish this, add a ToolbarCustomDialogButton toolbar item to ASPxHtmlEditor and assign the dialog's name to the toolbar item's ToolbarCustomDialogButton.Name property.

Expanded Custom Dialog Events

ASPxHtmlEditor provides you with the following events that allow you to respond to end-user interactions with custom dialogs and dialog button clicks on the client side.

Event Description
ASPxClientHtmlEditor.CustomDialogOpened Handle this event to initialize a custom dialog.
ASPxClientHtmlEditor.CustomDialogClosing Handle this event to respond to closing a custom dialog (initiated by a click on a dialog button or the header's close button).
ASPxClientHtmlEditor.CustomDialogClosed Handle this event to perform specific actions, based upon the dialog button that has been clicked or any other suitable condition.

How would you rate this topic?​​​​​​​