Accessing RadTab in MultiNested Splitter/pane

2 posts, 0 answers
  1. David
    David avatar
    12 posts
    Member since:
    Jun 2009

    Posted 27 Oct 2009 Link to this post


    I face an issue and suspect it is related to nested controls but can't achieve to find out how to solve it;

    I have a multiple nest of splitters/pane in a masterpage:

    <telerik:RadSplitter ID="MainSplitter" runat="server" Height="100%" Width="100%" Orientation="Horizontal" Skin="Office2007" > 
      <telerik:RadPane ID="TopPane" runat="server" Height="64" Scrolling="none" Locked="true">  
        <!-- Zone : En-tête --> 
        <div class="header"></div> 
      <telerik:RadSplitBar ID="RadsplitbarTop" runat="server" CollapseMode="Forward" Visible="true" /> 
        <telerik:RadPane ID="MainPane" runat="server" Scrolling="None" EnableEmbeddedBaseStylesheet="False" EnableEmbeddedSkins="True" Index="2" Skin="Office2007">  
          <telerik:RadSplitter ID="NestedSplitter" runat="server" Skin="Office2007" LiveResize="true">    
            <telerik:RadPane ID="LeftPane" runat="server" Width="200" MinWidth="150" MaxWidth="400">    
              <!-- Zone : Menu --> 
              <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="False" /> 
              <telerik:RadTreeView ID="RadTreeView1" Runat="server" Skin="Vista">  
              <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionStri...></asp:SqlDataSource> 
          <telerik:RadSplitBar ID="VerticalSplitBar" runat="server" CollapseMode="Forward" /> 
            <telerik:RadPane ID="RightPane" runat="server" Scrolling="None">    
              <!-- Zone : Childs --> 
              <telerik:RadSplitter ID="NestedSplitter2" runat="server" Skin="Office2007" Orientation="Horizontal">  
                <telerik:RadPane ID="DescriptionPane" runat="server" Height="96" MinHeight="96" MaxHeight="96" Scrolling="none" Locked="false">  
                  <fieldset style="width:500px; margin-left:auto; margin-right:auto; margin-top:8px; padding: 8px;">  
                    <legend style="font-weight:bold; padding-bottom:8px;">  
                      <asp:ContentPlaceHolder ID="DescriptionTitle" runat="server"></asp:ContentPlaceHolder> 
                        <td style="width: 40px; text-align: center;">  
                          <asp:ContentPlaceHolder ID="DescriptionIcon" runat="server"></asp:ContentPlaceHolder> 
                        <td style="text-align: left;">  
                          <asp:ContentPlaceHolder ID="DescriptionBody" runat="server"></asp:ContentPlaceHolder> 
                <telerik:RadSplitBar ID="Radsplitbar1" runat="server" CollapseMode="Forward" />    
                <telerik:RadPane ID="ContentPane" runat="server" Scrolling="Y" Locked="false">  
                  <asp:ContentPlaceHolder ID="Main" runat="server">  

    But trying to mimic the Wizard TabStrip Application Scenario I face an "Object Reference not set" error on the line
    Dim PlanningTab As RadTab = tabStrip.FindTabByText("Project Planning"

    of the script below:
    Imports Telerik.Web.UI  
    Partial Class Local_NewProject_Description  
      Inherits System.Web.UI.UserControl  
      Private Sub GoToNextTab()  
        Dim tabStrip As RadTabStrip = Page.FindControl("RadTabStrip1")  
        Dim PlanningTab As RadTab = tabStrip.FindTabByText("Project Planning")  
        PlanningTab.Enabled = True 

    of the code behind of an ascx used in this aspx page:
    <%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="newproject.aspx.vb" Inherits="Local_newproject" %> 
    <asp:Content... .../asp:Content> 
    <asp:Content ID="Content4" ContentPlaceHolderID="Main" Runat="Server">  
      <telerik:RadTabStrip ID="RadTabStrip1" runat="server">  
      <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">  

    Can somebody explain how I can reach the Tab subset and the TabStrip control of this page?
    Thank you in advance,
  2. Paul
    Paul avatar
    4281 posts

    Posted 04 Nov 2009 Link to this post

    Hello David,

    As we see  your tabstrip is not defined inline, so we suppose you are adding the tabs from code-behind. If so, we suppose that you are trying to find a tab too early in the page life cycle.

    If your problem persists, I think 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.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top