RadTabStrip in MasterPage

4 posts, 0 answers
  1. Gene
    Gene avatar
    1 posts
    Member since:
    Jul 2008

    Posted 25 Jul 2008 Link to this post

    With a RadTabStrip in a page that uses a master page, the code
    $find( "<%= RadTabStrip1.ClientID %>") 
    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?
  2. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 28 Jul 2008 Link to this post

    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.

    <%@ 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.
  3. Lewis
    Lewis  avatar
    1 posts
    Member since:
    Sep 2007

    Posted 28 Jul 2008 Link to this post

    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.
  4. Ivan Ruiz
    Ivan Ruiz avatar
    15 posts
    Member since:
    Dec 2004

    Posted 05 Sep 2009 Link to this post

    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:

     

    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

     

Back to Top