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

Presetting TabStrip and MultiPage

1 Answer 19 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 17 Jul 2012, 10:41 PM
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.

Robert

1 Answer, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 20 Jul 2012, 12:37 PM
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,
Kate
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
Robert
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or