Persistence of tabs dynamically created for tabStrip within a Master Page

2 posts, 0 answers
  1. David
    David avatar
    2 posts
    Member since:
    Aug 2009

    Posted 17 Aug 2009 Link to this post


    I have a question regarding persistence of a tab that's dynamically added to a radTabStrip contained in a master page.

    • I have a masterPage (master1.master) that contains a radTabStrip control (masterTabStrip).  masterTabStrip contains a single tab created at design time: text is "Home", navigateURL is "Home.aspx"
    • I have an aspx page (Home.aspx) that uses master1.master.
    • On Home.aspx's page_load event, I check if IsPostBack == false.  If it is false a new tab is dynamically added to masterTabStrip with text "Page2" and navigateURL is "Page2.aspx".
    • Page2.aspx also uses master1.master.
    • On Home.aspx there's a button that causes a postback where a redirect to Page2.aspx is done.
    • Page2.aspx loads with only the "Home" tab visible.  There is no "Page2" tab.

    Why is the "Page2" tab gone?  Is there a property that can be set to enable masterTabStrip to maintain state between different aspx pages?


  2. Paul
    Paul avatar
    4281 posts

    Posted 20 Aug 2009 Link to this post

    Hi David,

    I'm afraid this functionality cannot be achieved out-of-the-box. You will have to manually set flags in a session cookie for all page that have been visited and add the needed tabs every time.

    Kind regards,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top