With a RadTabStrip in a page that uses a master page, the code
returns 'null' is null or not an object. I have tried variations on this as well, using $get, or changing <%= to <%#. It works fine as above if the tab strip is not in a page that uses a master page.
Any suggestions?
$find( "<%= RadTabStrip1.ClientID %>") |
Any suggestions?
3 Answers, 1 is accepted
0
Hello Gene,
We tried to reproduce the reported issue on our side, but to no avail. Please find below a sample code snippet and let us know what's different on your side.
Greetings,
Paul
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
We tried to reproduce the reported issue on our side, but to no avail. Please find below a sample code snippet and let us know what's different on your side.
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="Untitled Page" %> |
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"> |
<script type="text/javascript"> |
function SetTab() |
{ |
var ts = $find('<%= RadTabStrip1.ClientID %>') ; |
alert(ts.get_id()); |
} |
</script> |
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="multipageProfile" SelectedIndex="1"> |
<Tabs> |
<telerik:RadTab runat="server" Text="View Profile"> |
</telerik:RadTab> |
<telerik:RadTab runat="server" Text="View Pics" Selected="True"> |
</telerik:RadTab> |
</Tabs> |
</telerik:RadTabStrip> |
<telerik:RadMultiPage ID="multipageProfile" runat="server" SelectedIndex="1"> |
<telerik:RadPageView ID="viewProfile" runat="server"> |
Profile Page |
</telerik:RadPageView> |
<telerik:RadPageView ID="viewPics" runat="server"> |
Pics Page |
</telerik:RadPageView> |
</telerik:RadMultiPage> |
<input id="Button1" type="button" value="button" onclick="SetTab()" /> |
</asp:Content> |
Greetings,
Paul
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Lewis Addison
Top achievements
Rank 1
answered on 28 Jul 2008, 01:06 PM
It appears to have been a Visual Studio issue. I installed SP1 (Beta) for Visual Studio 2008 over the weekend and it works as expected now.
Thank you for your response.
Thank you for your response.
0
Ivan Ruiz
Top achievements
Rank 1
answered on 05 Sep 2009, 07:51 PM
Hi, I have a very similiar issue but With RadMultiPage,
I can change to any of the PageViews on a simple page, using this script functions:
But if my RadMultiPage is created on a page from a MasterPage(Content Page), the function above doesnt't work, I have tried this on VS2005 and VS2008, and I can not make it work as a simple page.
Is There any Known issue about this ??
Thanks in advanced for any comment.
Ivan Ruiz
Cytrux Software
I can change to any of the PageViews on a simple page, using this script functions:
function chanepage(s){
var pageView = $find("<%= RadMultiPage1.ClientID %>")
pageView.get_pageViews().getPageView(s).set_selected(
true);
}
But if my RadMultiPage is created on a page from a MasterPage(Content Page), the function above doesnt't work, I have tried this on VS2005 and VS2008, and I can not make it work as a simple page.
Is There any Known issue about this ??
Thanks in advanced for any comment.
Ivan Ruiz
Cytrux Software