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

Selected Index

1 Answer 174 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 08 Nov 2012, 03:54 PM
Hi,
I am struggling to set the selected index for the first page, it works for the 2nd page, but not the first page, the tab selects but it displays the second page. Am i missing a tag?

<telerik:RadTabStrip ID="RadTabStrip1" runat="server"
        MultiPageID="RadMultiPage1" SelectedIndex="0">
        <Tabs>
            <telerik:RadTab runat="server" PageViewID="pageStandardProject"
                Text="Standard Project" Selected="True">
            </telerik:RadTab>
 
            <telerik:RadTab runat="server" PageViewID="pageBillOfQuantities"
                Text="Bill of Quantities">
            </telerik:RadTab>
            <telerik:RadTab runat="server" PageViewID="pageAudit" Text="Audit">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>

Thanks in Advance
Ryan

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 09 Nov 2012, 06:33 AM
Hi Ryan,

I suppose you want to set the pageStandardProject to the first RadTab. Following is the sample code that I tried to achieve the scenario.

ASPX:
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" SelectedIndex="0">
    <Tabs>
        <telerik:RadTab runat="server" PageViewID="pageStandardProject" Text="Standard Project" Selected="True">
        </telerik:RadTab>
        <telerik:RadTab runat="server" PageViewID="pageBillOfQuantities" Text="Bill of Quantities">
        </telerik:RadTab>
        <telerik:RadTab runat="server" PageViewID="pageAudit" Text="Audit">
        </telerik:RadTab>
    </Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">
    <telerik:RadPageView ID="pageStandardProject" runat="server" ContentUrl="pageStandardProject.aspx" Selected="true">
    </telerik:RadPageView>
    <telerik:RadPageView ID="pageBillOfQuantities" runat="server" ContentUrl="pageBillOfQuantities.aspx">
    </telerik:RadPageView>
    <telerik:RadPageView ID="pageAudit" runat="server" ContentUrl="pageAudit.aspx">
    </telerik:RadPageView>
</telerik:RadMultiPage>

Please elaborate your scenario if it doesn't helps.

Regards,
Shinu.
Tags
TabStrip
Asked by
Ryan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or