Tabstrip Formsave on Tab Change

4 posts, 0 answers
  1. John
    John avatar
    2 posts
    Member since:
    Mar 2012

    Posted 27 Mar 2012 Link to this post

    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
  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 30 Mar 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. John
    John avatar
    2 posts
    Member since:
    Mar 2012

    Posted 09 Apr 2012 Link to this post

    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

  5. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 12 Apr 2012 Link to this post

    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.
Back to Top