Selected Index

2 posts, 1 answers
  1. Ryan
    Ryan avatar
    15 posts
    Member since:
    Aug 2012

    Posted 08 Nov 2012 Link to this post

    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
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 09 Nov 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top