select

ComboBox / Validation Groups

Rate this demo: Feedback
Run example in: C# VB.NET Change Skin:
Vista
  • BlackBlack
  • DefaultDefault
  • ForestForest
  • HayHay
  • Office2007Office2007
  • OutlookOutlook
  • SimpleSimple
  • SitefinitySitefinity
  • SunsetSunset
  • TelerikTelerik
  • VistaVista
  • Web20Web20
  • WebBlueWebBlue
  • Windows7Windows7
Search Form
  •  
  • select
     
  • Search

Example Source Code & Description

Instructions
Open in new window
  • Validation groups allow you to organize validation controls on a page as a set. Each validation group can perform validation independently from other validation groups on the page. You create a validation group by setting the ValidationGroup property to the same name (a string) for all the controls you want to group. You can assign any name to a validation group, but you must use the same name for all members of the group.

    There are two validation groups in this example:

    1. The "SearchFormValidationGroup" contains a RadTextBox and a RadComboBox which are validated by two RequiredFieldValidator controls. The ValidationGroup property of the validators and the "Search" button is set to SearchFormValidationGroup. Pressing the "Search" button will trigger validation only for the SearchFormValidationGroup.
    2. The "LoginFormValidationGroup" contains two RadTextBox controls which are validated by two RequiredFieldValidator controls. The ValidationGroup property of the validators and the "Login" button is set to LoginFormValidationGroup. Pressing the "Login" button will trigger validation only for the LoginFormValidationGroup.
Compatible with ASP.NET 2.0, 3.5 AJAX enabled Accessibility Verified!Valid XHTML 1.1! Optimized for Visual Studio 2005, 2008
Copyright 2002-2010 © Telerik. All right reserved  | 
Telerik Inc., 460 Totten Pond Rd, Suite 640, Waltham, MA 02451

www.telerik.com  |  Terms of Use  |  Contact Us