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

Tabstrip Formsave on Tab Change

3 Answers 66 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 27 Mar 2012, 02:33 PM
Hello all.  I am looking to purchase Telerik for some work I am doing for a client.  In making my case for purchase, I came accross the tabstrip. I found the following demo which does something I need to implement:

http://demos.telerik.com/aspnet-ajax/tabstrip/examples/functionality/validationgroup/defaultcs.aspx

The question I have is that when it calls the validation group before switching to each tab does it/can it submit the form on the page or call a sub in the code behind.  Basically what the client wants is that the form in each tab should save when the user switches tabs.  If the form is missing required information, it wouldn't let them switch tabs until the current form/tab is properly filled out and submitted/saved.  Is that what this control would do?  It would save me a lot of work.  Thanks in advance for any help you can give.

John

3 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 30 Mar 2012, 10:37 AM
Hello John,

If you perform a post-back between tabs switching than the form will be submitted. As for the particular demo which you have mentioned the OnTabClick server event is handled and indeed the form is being submitted. In case you don't want to handle this server event you could simply set the AutoPostBack property of the RadTabStrip to True.

All the best,
Dimitar Terziev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
John
Top achievements
Rank 1
answered on 09 Apr 2012, 02:58 PM
Dimitar ,
  Thanks for your response.  We did get approval to move forward with the purchase.  As I move to implement this, I have run into an issue(question).  I have 3 tabs and have each section in their perspective user controls.  In each of those user controls, I have a Formview that will submit information.(it is submitted via a button click that calls a Sub to Insert/update information in SQL)  
Previously in the regular .asp tab container way of doing things, I had an onactivetabchanged event that would call a Sub in the code behind.

In the Telerik way of doing things, how would I call the sub routing in the code behind of the user control.  I want not only form validation performed(which it is doing perfectly), but I want to call the sub in the .acx.vb file to do the actual submission of the form before switching tabs.  Please advise, or let me know if I need to submit a support ticket.
Thanks,
John

0
Dimitar Terziev
Telerik team
answered on 12 Apr 2012, 09:38 AM
Hello John,

I've already responded to the support ticket regarding the same matter which you have submitted so my suggestion is to continue the discussion there.

Kind regards,
Dimitar Terziev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TabStrip
Asked by
John
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
John
Top achievements
Rank 1
Share this question
or