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

How to maintain tab state

5 Answers 101 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
smith spd
Top achievements
Rank 1
smith spd asked on 08 Jul 2010, 07:45 PM
Hello Telerik Team,

I have two tabs with two UserControls loaded inside them.
How do I save the state of one tab i.e; if I click on something inside tab 2, it eventually causes a postback which then causes tab1 to lose its content. I have enabledviewstate = true but still I am not able to maintain the State of one tab if content in other tab is changed.

Help in this issue is greatly appreciated.

Thanks,
Smith

5 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 09 Jul 2010, 07:57 AM
Hello Smith,

RadTabStrip is supposed to maintain its state (except the cases when NavigateUrl property of the tabs is set). We cannot tell what's wrong in your case only from this description, could you please send us some sample code which will help us reproduce the problem? Thanks

All the best,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
smith spd
Top achievements
Rank 1
answered on 09 Jul 2010, 05:39 PM
Hello Yana,

Thanks for the Reply.

Well, I may not be able to post the code since it comprises of 12 projects.
To provide with an overview of what I am doing, pls find the below xml to start working on.

    

<ResponseNode>
 <Product pName="Product1.ascx" TabName="Product1">
  <SubProduct pName="SubProduct1.ascx" TabName="Product1" placeHolder="left"/>
  <SubProduct pName="SubProduct2.ascx" TabName="Product1" placeHolder="center"/>
  <SubProduct pName="SubProduct3.ascx" TabName="Product1" placeHolder="right"/>
 </Product>
 <Product pName="Product2.ascx" TabName="Product2">
  <SubProduct pName="SubProduct1.ascx" TabName="Product2" placeHolder="left"/>
  <SubProduct pName="SubProduct2.ascx" TabName="Product2" placeHolder="center"/>
  <SubProduct pName="SubProduct3.ascx" TabName="Product2" placeHolder="right"/>
 </Product>
</ResponseNode>

From above xml:

I am having single aspx, using xmldom I have iterated through nodelist and displayed respective controls in 2 tabs. product1 as product1.ascx in which SubProducts ascx's are embeded.
There is no postback while switchin b/w tabs, on click of one item in tab1 causes other tab to lose or cause postback.

0
Yana
Telerik team
answered on 15 Jul 2010, 08:13 AM
Hello Smith,

I've just answered to the support ticket regarding tabs issues.  I've created a simple test page to show you how to load the user controls, you can find it also attached to this thread for your convenience.

All the best,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
smith spd
Top achievements
Rank 1
answered on 15 Jul 2010, 08:10 PM
Thank you so much.
Would be great if you can resolve one of my issues with TabStrip here


Thanks,
Smith
0
Johan
Top achievements
Rank 1
answered on 13 Aug 2010, 08:47 PM
Hi,

I am dealing with the same issue.

Can you please share how you manage to resolve it?

Thanks
Tags
TabStrip
Asked by
smith spd
Top achievements
Rank 1
Answers by
Yana
Telerik team
smith spd
Top achievements
Rank 1
Johan
Top achievements
Rank 1
Share this question
or