Setting Selected Tab on Postback

2 posts, 0 answers
  1. Dave
    Dave avatar
    13 posts
    Member since:
    May 2012

    Posted 19 Mar 2013 Link to this post

    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?

  2. Nencho
    Nencho avatar
    1663 posts

    Posted 21 Mar 2013 Link to this post

    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,
    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.
Back to Top