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

issue with using button with requirefieldvalidator

1 Answer 22 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
prayag ganoje
Top achievements
Rank 1
prayag ganoje asked on 11 Aug 2010, 03:25 PM
Hello,

I am using telerik example given below:
http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/accessingnestedcontrols/defaultcs.aspx

Here i've used required field validation in step 2 as well. And thats why  Next button on step 1 is not working. If click on the Next button in step 1 then application remains standstill. No operation happens unless and untill all the required values in the step 2 are filled up.

How to solve this issue? I saw this example once again. In step 3 there is one condition on the check box. But that is not a required field validator. Validation is checked using some Javascript.

So how to solve this issue? I want to use required field validations in each PanelItem. Also Next buttons are working in each panelItem and should not wait for to fill up data in next PaneIltem. And panels should expand and collapse normally on button click.

Thanks,
Prayag

1 Answer, 1 is accepted

Sort by
0
Simon Wolters
Top achievements
Rank 1
answered on 30 Aug 2010, 08:00 PM
If I get your problem right, you need to set different ValidationGroups for the controls (textboxes and the "next" button) in each step. That way you can for example check if all fields in step 1 are filled and ignore controls in step 2 and 3. 

As you can see in the telerik example, all controls in step 1 have the validation group "accountValidation" while the checkbox and button in step 3 are in the group "registerGroup". 

Setting an explicit ValidationGroup should also make the panels ignore your validation rules so that you can always change the active panel. 
Tags
PanelBar
Asked by
prayag ganoje
Top achievements
Rank 1
Answers by
Simon Wolters
Top achievements
Rank 1
Share this question
or