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

[Solved] Persistence of tabs dynamically created for tabStrip within a Master Page

1 Answer 126 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 17 Aug 2009, 07:23 PM
Hello,

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?

Thanks,
David

1 Answer, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 20 Aug 2009, 01:13 PM
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,
Paul
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.
Tags
TabStrip
Asked by
David
Top achievements
Rank 1
Answers by
Paul
Telerik team
Share this question
or