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

UserControls used as MultiPage in TabStrip

3 Answers 88 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Chandru
Top achievements
Rank 1
Chandru asked on 02 Apr 2011, 08:41 PM
Hi

I have a user control which has TabStrip control. The Tabstrip control has 2 tabs ,each of the tab has a PageView which is again a user control.Say, when I click on Tab1 ,the PageView1(usercontrol) has 3 input fields like FullName, CompanyName,PhoneNo.
When I click on Tab2,PageView2(user control) has 2 other input fields with a Submit button.

How do I persist the data across tabs and update the database on click of submit button?
Also I want each of the PageViews to be validated before I click Submit button. How do I do this?

Thanks,
Chand

3 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 04 Apr 2011, 08:54 AM
Hello Chand,

Please take a look at our "Wizard" demo as it will guide you how to solve your requirements. There you can find how to validate the input fields and how to persist data across postbacks.

Please let me know if you have further questions.

Kind regards,
Veronica Milcheva
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
0
Chandru
Top achievements
Rank 1
answered on 06 Apr 2011, 07:09 PM
I am so new to this Telerik controls.I don't see any javascript validation in the demo but otherwise fine.

This is my scenario for validation. I have 3 tabs with user control as Pageview in each of the tabs.(ie one User Control for one PageView).I cannot use .NET validators as they check each and every time for missing values.
The validation on all the PageViews/tabs should ONLY happen when the Submit button in the page is clicked.

So say I have a Phone number field in first PageView. How do I check for Phone # validation(if missing value) or how do i get reference to that Phone Number RadMaskedTextbox control in the first PageView(remember this is UserControl) on the click of the Submit button in the page ?

Thanks.
0
Veronica
Telerik team
answered on 12 Apr 2011, 11:50 AM
Hi Chand,

"I cannot use .NET validators as they check each and every time for missing values." I disagree with this. .NET has a large number of validator controls and each of them corresponds to different validation goals. For example: you can use CompareValidator to check whether a date is in predefined values. Also you can use RegularExpressionValidator to validate different fields with regular expressions (e.g an e-mail) etc.

You can use the "Wizard" demo to see how to validate user controls in PageViews. However in our example we only use RequiredFieldValidator. To check not only whether the value is empty but whether it is correct - you can use other validators from the .NET Framework.

Regards,
Veronica Milcheva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
TabStrip
Asked by
Chandru
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Chandru
Top achievements
Rank 1
Share this question
or