Presetting TabStrip and MultiPage

2 posts, 0 answers
  1. Robert
    Robert avatar
    253 posts
    Member since:
    Aug 2007

    Posted 17 Jul 2012 Link to this post

    I have implemented a RadTabStrip and connected RadMultiPage.  The contents of each MultiPage are similar but have different purposes. 
    For example purposes, let's say that the page contains the shopping list of a household for a given day where: Tab 0 = Fruit , Tab 1 = Vegetables, and Tab 2 = Dairy.

    Each day the user will go onto the appropriate tab pages to enter the quantities of items purchased.  Some days all 3 tab pages will have data entered, other days there'll just be 2 of the 3 used, and still other days only 1 of the 3 will have anything recorded.

    I've introduced logic so that the first of the 3 tab pages with any data on it will be preset when the user returns to review the data.  My initial investigation suggests that I must set the SelectedIndex property of BOTH the TabStrip AND the MultiPage, as in this example:

              RadTabStrip1.SelectedIndex = initialActiveTab;
              RadMultiPage1.SelectedIndex = initialActiveTab;

    I wouldn't have thought that I need to do this as I thought the TabStrip and MultiPage were internally connected in a sense.  But I wanted to double-check here on the Telerik forums to be sure.

  2. Kate
    Kate avatar
    1898 posts

    Posted 20 Jul 2012 Link to this post

    Hello Robert,

    Yes, indeed you need to set the SelectedIndex property for both the RadTabStrip and RadMultiPage controls as exemplified in our on-line demo here (or you can also use the Selected property of the RadTab and RadPageView and set it to 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