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

Accessing RadTab in MultiNested Splitter/pane

1 Answer 58 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 27 Oct 2009, 03:32 PM

Hello,

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:RadPane> 
  <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">  
          </telerik:RadTreeView> 
          <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionStri...></asp:SqlDataSource> 
      </telerik:RadPane>    
      <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> 
                </legend> 
                <table> 
                  <tr> 
                    <td style="width: 40px; text-align: center;">  
                      <asp:ContentPlaceHolder ID="DescriptionIcon" runat="server"></asp:ContentPlaceHolder> 
                    </td> 
                    <td style="text-align: left;">  
                      <asp:ContentPlaceHolder ID="DescriptionBody" runat="server"></asp:ContentPlaceHolder> 
                    </td> 
                  </tr> 
                </table> 
              </fieldset> 
            </telerik:RadPane> 
            <telerik:RadSplitBar ID="Radsplitbar1" runat="server" CollapseMode="Forward" />    
            <telerik:RadPane ID="ContentPane" runat="server" Scrolling="Y" Locked="false">  
              <asp:ContentPlaceHolder ID="Main" runat="server">  
              </asp:ContentPlaceHolder> 
            </telerik:RadPane> 
          </telerik:RadSplitter> 
        </telerik:RadPane>    
      </telerik:RadSplitter>    
    </telerik:RadPane>    
  </telerik:RadSplitter>   

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:RadTabStrip> 
  <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">  
  </telerik:RadMultiPage> 
</asp:Content> 

Can somebody explain how I can reach the Tab subset and the TabStrip control of this page?
Thank you in advance,
David

1 Answer, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 04 Nov 2009, 11:23 AM
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.

Regards,
Paul
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.
Tags
TabStrip
Asked by
David
Top achievements
Rank 1
Answers by
Paul
Telerik team
Share this question
or