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

Required field validation on tab strip

4 Answers 313 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
bharat kumar
Top achievements
Rank 1
bharat kumar asked on 12 Jul 2010, 04:45 PM

Hi,

i have 2 tab strip i.e general and participants and textboxes on both tabs.
need to put required field validation on both tabs for compulsory fields.
validation is working on first tab while clicking on save button but not of other tab.

 

<asp:RequiredFieldValidator ID="v4" ControlToValidate="txtMaxParticipantField" ErrorMessage="* Enter Max Participant number"

 

 

Display="None" InitialValue="Enter Max Participant number" runat="server"

 

 

 ValidationGroup="Trainingsave"></asp:RequiredFieldValidator>

all validation on general tabs textbox fields is firing on save button click but validation on participants tab textbox fields is not fired.


please help.

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 Jul 2010, 06:13 AM
Hello,

The demo shows how to add validation to RadTabStrip control.
Validation Groups

Try setting the CausesValidation and ValidationGroup properties as shown in demo and see whether it works for you.


-Shinu.
0
bharat kumar
Top achievements
Rank 1
answered on 13 Jul 2010, 09:28 AM

Hi ,

thanks for your reply.
but my problem is still there and it is different than this.

in my case ...
i have textboxes in both tabs i.e. Genral and participants tabs and having textboxes in both tabs.
i want the validation to be fire on click of submit button for both tabs.
but unfortunately it is only working for general tabs validation.
means whatever validation on general tab (first one) is fired but not the Participants tab (second tab).

please help.
0
Vinodh Kumar
Top achievements
Rank 1
answered on 15 Jul 2010, 02:41 PM
hi,
I am facing the same problem. I am not using any validation group. It is a general required field validation for the text boxes in different tabs of rad tab strip  and it just block all the tabs. I am not able to navigate to other tabs in the tabstrip.
So please help me because in our project i already implemented the tabs and validation is required for the field residing different tabs.
One more thing i tried by  implementing "CausesValidation="false"" in the  telerik:RadToolBar as well as in the telerik:RadToolBarButton.

0
Yana
Telerik team
answered on 20 Jul 2010, 03:42 PM
Hello there,

I just checked this and the validation is fired for the controls inside all pageviews. You just need to set CausesValidation property to false in order to be able to switch the tabs. 

If you still experience this issue, please send us sample code which will help us reproduce it. Thanks

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
bharat kumar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
bharat kumar
Top achievements
Rank 1
Vinodh Kumar
Top achievements
Rank 1
Yana
Telerik team
Share this question
or