This is a migrated thread and some comments may be shown as answers.

Button Handles Multiple ValidationGroups

1 Answer 61 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Trevor
Top achievements
Rank 1
Trevor asked on 15 Jul 2010, 07:17 PM
Hi,

I have a button on a page directly below my tab strip. The tab strip handles three different pages with forms on them, each with a different set of validators within validation groups. Here is my problem: I would like to have a button check more then a single validation group. As of right now I have it checking the validation on a single group within the tab. If anyone knows the solution, please let me know.

My code is below where addressForm is the validation group for address information. I would also like to have it check another group called "userForm".

btnPageSubmit.ValidationGroup = "addressForm"

Note, I have tried

Protected Sub btnPageSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnPageSubmit.Click
        lblResult.Text = Page.IsValid
        Validate("addressForm")
        Validate("userForm")
    End Sub

This solution will submit the page and return that the page IS valid when none of the required fields are filled out.

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 21 Jul 2010, 09:45 AM
Hi Trevor,

Please check this forum post which describes similar approach.

Greetings,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TabStrip
Asked by
Trevor
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or