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

RadTabStrip does not show until you click a tab

3 Answers 333 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Angelo Babudro
Top achievements
Rank 1
Angelo Babudro asked on 08 Sep 2008, 01:27 AM
Can anyone explain the following behaviour? I added a RadTabStrip and RadMultiPage control to my page. I set the properties of the tab pages to display the corresposnding multipage views...However when I load the page I see the tabs but nothing displays in the "default" tab...I have to select another one to get the content to appear and then click back on the first one and the content then appears...Very wierd...Here is the code


<telerik:RadTabStrip ID="RadTabStrip1" runat="server" Width="100%"

SelectedIndex="0" Skin="Web20" MultiPageID="RadMultiPage2">

<Tabs>

<telerik:RadTab runat="server" Selected="True" Text="Transaction History"

PageViewID="RadPageView1" ToolTip="Click here to view Transaction history">

</telerik:RadTab>

<telerik:RadTab runat="server" Text="Owner Information"

PageViewID="RadPageView2" ToolTip="Click here to view Owner Information">

</telerik:RadTab>

</Tabs>

</telerik:RadTabStrip>

<telerik:RadMultiPage ID="RadMultiPage2" runat="server">

<telerik:RadPageView ID="RadPageView1" runat="server">

<table>

<tr><td>

<asp:Label ID="Label11" runat="server" Text="One"></asp:Label>

</td></tr>

</table>

</telerik:RadPageView>

<telerik:RadPageView ID="RadPageView2" runat="server">

<table>

<tr><td>

<asp:Label ID="Label14" runat="server" Text="Two"></asp:Label></td></tr>

</table>

</telerik:RadPageView>

</telerik:RadMultiPage>

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 08 Sep 2008, 08:14 AM
Hello Ashley Murray,

You should set the SelectedIndex property of the multipage as well.

Sincerely yours,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Angelo Babudro
Top achievements
Rank 1
answered on 08 Sep 2008, 12:04 PM
Albert:

Thanks for the info...that worked...sorta...When I set the "SelectedIndex" property of theRadMultiPage to 0 and ran the project, it still didn't work. I then noticed the selected property of the individual RadPageViews...I set the first one to true and noticed that the SelectedIndex of the MultiPage stayed at 0 as expected so I tried setting the Selected property of the second page to true..as expected the SelectedIndex of the MultiPage turned to 1...I switched them back so the selected property of the first MultiPageView was true

i ran the project but it still didn't work...I checked the HTML and noticed that the selected property of both PageViews was true even though selecting them in the visual designer showed the first one true and the second one false...when I removed the selected=true attribute for the second RadPageView everything ran as expected...so it appears there is a bug in the tabcontrol/multipage...I am using version 2008.2.723.35 of the controls

Thank you.
0
Atanas Korchev
Telerik team
answered on 08 Sep 2008, 12:55 PM
Hello Ashley Murray,

Setting more than one pageview as selected is not supported. Usually the last one will be selected. Please use either the SelectedIndex property of the multipage or the Selected property of the pageview.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TabStrip
Asked by
Angelo Babudro
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Angelo Babudro
Top achievements
Rank 1
Share this question
or