RadMultiPage.SelectPageByIndex is gone ?!

4 posts, 0 answers
  1. Meninx
    Meninx avatar
    18 posts
    Member since:
    May 2007

    Posted 10 Apr 2009 Link to this post

    Hello,

    I would like to select tabstrip with its linked multipage throw this:

    var

     

    tab = RadTabStripObj.findTabByValue(segments[2]);

     

     

    if (tab) {

     

        tab.select();

    }

    unfortunatly its not syncronazing radmultipage.
    so I'm added this:

    var RadMultiPage = $get(sender.get_multiPageID());   // "sender.get_multiPageID()" returns the right id of the control, but sender.get_multiPage() returns null. Is this a bug ?

    // and then select the Page by Index, but SelectPageByIndex is gone, not in the list of methods anymore.
    How to do that now ?

    Regards.

  2. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 13 Apr 2009 Link to this post

    Hi Jean-Christophe,

    Please find below a sample code snippe that shows the needed approach.

        <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
     
        <script type="text/javascript">  
            function selectTab() {  
                var tabstrip = $find('<%= RadTabStrip1.ClientID %>');  
                var multipage = $find('<%= RadMultiPage1.ClientID %>');  
                var tab = tabstrip.findTabByText("Root RadTab2");  
                if (tab) {  
                    tab.select();  
                }  
            }  
        </script> 
     
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1">  
            <Tabs> 
                <telerik:RadTab runat="server" Text="Root RadTab1">  
                </telerik:RadTab> 
                <telerik:RadTab runat="server" Text="Root RadTab2">  
                </telerik:RadTab> 
            </Tabs> 
        </telerik:RadTabStrip> 
        <telerik:RadMultiPage ID="RadMultiPage1" runat="server">  
            <telerik:RadPageView ID="RadPageView1" runat="server">  
                RadPageView1</telerik:RadPageView> 
            <telerik:RadPageView ID="RadPageView2" runat="server">  
                RadPageView2  
            </telerik:RadPageView> 
        </telerik:RadMultiPage> 
        <input id="Button1" type="button" value="button" onclick="selectTab()" /> 
        </form> 


    Best wishes,
    Paul
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. Meninx
    Meninx avatar
    18 posts
    Member since:
    May 2007

    Posted 14 Apr 2009 Link to this post

    Hi

    thanks for the reply

    I already filled this attribute.

    Another suggestion ?
  4. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 14 Apr 2009 Link to this post

    Hello Jean-Christophe,

    The provided code snippet is tested locally and it works just fine. If this is not your case, it will be best if you can open a support ticket and send us a simple running project (incl. your custom skin, CSS, images, DB backup if needed and so on) demonstrating the problem (and step-by-step instructions on doing so). In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.

    All the best,
    Paul
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top