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

Setting Selected Tab on Postback

1 Answer 55 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 19 Mar 2013, 07:41 AM
I have a Tabstrip set up with MultipageViews displaying the tab contents. Some of my MultipageViews contain links that cause the page to postback. Everything works fine except the selected tab always returns to index 0. How can I set the selected tab on the server-side after a postback casued by a link on the MultipageView?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 21 Mar 2013, 05:36 PM
Hello Dave,

I can suggest you to use the FindTabByText/FindTabByValue methods to access the desired RadTab and use its Selected property, set to true. Please consider the following implementation:

RadTabStrip1.FindTabByText("Tab 1").Selected = true;
RadMultiPage1.FindPageViewByID("PageView1").Selected = true;


Kind regards,
Nencho
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.
Tags
TabStrip
Asked by
Dave
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Share this question
or