Free Trial Buy Now

HTML Editor - Validation

v
v
Bold (CTRL+B)
Italic (Ctrl+I)
Underline
Strikethrough
Align Left
Align Center
Align Right
Justify
Design
HTML
Preview
Length of HTML code representing the Editor's content (in characters): 221

Submit

Description

This demo illustrates the content validation capabilities available to you within the DevExpress MVC HTML Editor. You can define Editor content validation logic - both on the client and server - via any of the following methods:

  • Check if content is empty. Enable the SettingsValidation.RequiredField property to force the editor to require input and display a prompt message when validation fails.
  • Provide custom validation logic by handling the Editor’s Validation client event or passing the delegate method as a parameter to the extension's GetHtml function, called within the Validation action. Open the Code tab within this demo to see how this is accomplished.

You are free to combine these methods together to augment validation rules when required. Additional validation options can be specified via the Editor's SettingsValidation property. Among others, there are options for an error frame, which is displayed within the editor's Design View when the Editor fails validation. These options allow you to specify both error description and appearance settings. In addition, you can dynamically customize error descriptions within validation event handlers.

Version: v2012 vol 2.8
Experience the DevExpress Difference Today
Demos with source code are included with an installation of DevExpress controls for ASP.NET. Refer to the Demos and Sample Applications topic to learn more.
To download your free evaluation copy of our award-winning ASP.NET libraries, visit the Downloads page
All DevExpress MVC Extensions ship as part of DXperience ASP.NET, Enterprise, and Universal.
To obtain pricing information, visit the Pricing Options page or contact us via Email at info@devexpress.com
or by telephone at +1 (818) 844-3383 between 8:30am and 5pm Pacific Time.