[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Expand]Grid View
  [Expand]Tree List
  [Expand]Card View
  [Expand]Chart Control
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Vertical Grid
  [Collapse]Data Editors
   [Expand]Product Information
   [Collapse]Common Concepts
    [Expand]Binding to Data
    [Expand]Mask Editing
      Validation Overview
      Validation Settings
      Validation Error Message
      Validation Summary
       How to: Validate a Particular Editor
       How to: Validate a Group of Editors
       How to: Validate All Editors on a Page
       How to: Implement a Custom Validation
       How to: Determine Editors Validity
    [Expand]List Editors
     Accessibility Support
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Controls
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

How to: Validate a Group of Editors

To validate a group of editors, you can use one of the following ways.

  • Specify the required editors ValidationSettings.ValidationGroup property to the same value. To perform validation, call the ASPxClientEdit.ValidateGroup method. Note that if you call the method with an empty (null) parameter, it validates all editors that have the ValidationGroup property not specified.

  • Put all the required editors in a container and call the client-side ASPxClientEdit.ValidateEditorsInContainer, ASPxClientEdit.ValidateEditorsInContainerById, or server-side ASPxEdit.ValidateEditorsInContainer method to validate all editors within the container.

  • Set the editor's ValidationSettings.CausesValidation and ASPxEdit.AutoPostBack properties to true. In this case, when the editor's value is changed, it will raise validation for all editors from its validation group.

  • You can validate a group of editors on an ASPxButton click. For this purpose, set the button's ASPxButton.ValidationGroup property to group name and the ASPxButton.CausesValidation property to true (default value). In this case, the button click invokes group validation.

Is this topic helpful?​​​​​​​