How to make tabstrip remember current view?

4 posts, 0 answers
  1. Ryan
    Ryan avatar
    12 posts
    Member since:
    Oct 2012

    Posted 27 Mar 2013 Link to this post

    I have a tabstrip with two buttons -- call them A and B.  The content of tab A lets the user click on a button and go to another view, and a back button appears.  

    If the user then clicks on tab B, and then on tab A, the content of tab A should still show the second view with the back button (this is how native tabstrips work).   But that isn't happening -- the view gets changed to the initial view of tab A, forcing the user to re-navigate to where they were before.

    How do i make it work so that the view in each tab is preserved when a user clicks a different tab button and then back again?
  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 28 Mar 2013 Link to this post

    Hello Ryan,

    Thank you for contacting us - indeed, the native tabstrips behave in the way you describe. Each tab maintains its own stack of views. 

    I am afraid that such behavior can't be accomplished with the current widget, as it would require a fundamentally different approach - each tab should have its own pane with a separate set of views associated. This would also affect the browser back button and history manipulation, to name a few things.

    Given that, introducing such behavior to the current tabstrip widget would be a huge breaking change (the markup should be updated) - I think that at some point we may consider implementing this as an extension of the splitview (which maintains multiple panes), or as an entirely new widget. 

    Regards,
    Petyo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Ryan
    Ryan avatar
    12 posts
    Member since:
    Oct 2012

    Posted 28 Mar 2013 Link to this post

    That is unfortunate, as the point of kendo mobile is to provide as much as possible the same experience you would get in a native app.  History should be isolated to each tab and never should it be the case that hitting a back button brings you to another tab.  
  5. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 01 Apr 2013 Link to this post

    Hi Ryan,

    Changing the current implementation will result in a top level breaking change. We do agree that the behaviour which you described is closer to the native one, however we want to gather more information about the community interest in it.

    We will appreciate if submit this as a feature request at KendoUI UserVoice portal. In this way the other users will be able to vote for it. If it gains popularity we will consider it for one of the future releases.

    Kind regards,
    Alexander Valchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
Kendo UI is VS 2017 Ready