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

RadMultiPage.SelectPageByIndex is gone ?!

3 Answers 63 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Meninx
Top achievements
Rank 1
Meninx asked on 10 Apr 2009, 05:20 PM
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.

3 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 13 Apr 2009, 01:04 PM
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.
0
Meninx
Top achievements
Rank 1
answered on 14 Apr 2009, 01:57 PM
Hi

thanks for the reply

I already filled this attribute.

Another suggestion ?
0
Paul
Telerik team
answered on 14 Apr 2009, 02:34 PM
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.
Tags
TabStrip
Asked by
Meninx
Top achievements
Rank 1
Answers by
Paul
Telerik team
Meninx
Top achievements
Rank 1
Share this question
or