RadTabStrip for ASP.NET

Validation groups Send comments on this topic.
See Also
ASP.NET 2.0 features > Validation groups

Glossary Item Box

You can assign a group name to a set of validators to ensure that validation occurs only for controls in the specified group. This enables you to have multiple separately validated forms on a single page.

The ValidationGroup property is used when you want to perform separate validation scenarios on the same page. Set the group name on validator controls and on the button that causes validation. By default, all validators are in the "" group (default group), for backward compatibility. The Page object also exposes the GetValidators("group") method and the Validate("group") method. Page.IsValid reflects validity of all controls (cumulative) that have had Validate called.

ASPX Copy Code
<rad:RadTabStrip
   
ID="RadTabStrip1"
   
runat="server"
   
SelectedIndex="0"
   
Skin="WinXP"
   
ValidationGroup="TabStripValidationGroup"
   
CausesValidation="True"
   
>
...
<asp:TextBox runat="server" ID="name">
</
asp:TextBox>
<
asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator3" ControlToValidate="name"
Display="Dynamic" ErrorMessage="Please, enter the name to search for" ValidationGroup="TabStripValidationGroup" />
See live examples of this functionality at www.telerik.com.

See Also