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

RadControls asp.net to RadControls asp.net AJAX

1 Answer 38 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Christian Oncken
Top achievements
Rank 1
Christian Oncken asked on 29 Sep 2008, 03:54 PM

 
Hello,

I have a project where I need to switch tab pages using links not the tabs. only the multipage control is used on the page (no tabstrip).
I am upgrading our controls to the new AJAX  controls and this onclick event no longer works.  Is there an equivilant call for the AJAX control?

This is how I was doing it in the old contols...

<

a style="width: 183px;" onclick="<%= objRadMultiPage.ClientID%>.SelectPageByIndex(0);return(false)">

Thanks!

 

1 Answer, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 01 Oct 2008, 02:28 PM
Hi Christian,

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

<script type="text/javascript">  
function setPageView(index)  
{  
    var multipage = $find('<%= RadMultiPage1.ClientID %>');  
    multipage.set_selectedIndex(index);  
}  
</script> 
 
<style="width: 183px;" onclick="setPageView(0)">PAGE1</a>&nbsp;  
<style="width: 183px;" onclick="setPageView(1)">PAGE2</a> 
<telerik:RadMultiPage ID="RadMultiPage1" runat="server">  
    <telerik:RadPageView ID="RadPageView1" runat="server">  
        This is PageView1  
    </telerik:RadPageView> 
    <telerik:RadPageView ID="RadPageView2" runat="server">  
        This is PageView2  
    </telerik:RadPageView> 
</telerik:RadMultiPage> 


Regards,
Paul
the Telerik team

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