[CLOSED] Adding a New Tab to TabPanel

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] Adding a New Tab to TabPanel


    I am not able to add new tab to a tabpanel, Here is the simplied Code, please tell me what am i missing??
    also, Can i add a new tab of type "ext:Window" autoLoad with a URL ??


    <%@ Page Title="" Language="VB" AutoEventWireup="false" CodeFile="TabPanel.aspx.vb" Inherits="TabPanel" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
    <title>Ext.NET Example</title>    
        <form runat="server" >
        <ext:ResourceManager ID="ResourceManager1" runat="server" ScriptMode="Debug" />
        <ext:TabPanel ID="myTabPanel" runat="server" Width="450">
                <ext:Panel ID="first" runat="server" Html="First Tab" Title="First" AutoHeight="true" Padding="6" />
                <ext:Panel ID="Second" runat="server" Html="Second tab" Title="Second" AutoHeight="true"  Padding="6"/>
        <ext:Panel ID="newTab" runat="server" Title="RFC Details" AutoHeight="true" Hidden="true">
                This is the newly added tab
        <ext:Button runat="server" ID="btnAddTab" Text="Add new Tab" StyleSpec="margin-left:10px;padding-top:50px;"  >
                <Click OnEvent="AddTab" />
    Imports Ext.Net
    Partial Class TabPanel
        Inherits System.Web.UI.Page
        Protected Sub AddTab(ByVal sender As Object, ByVal e As DirectEventArgs)
            'Add the window to the tab
        End Sub
    End Class
    Last edited by geoffrey.mcgill; Feb 02, 2011 at 5:23 PM. Reason: [CLOSED]

Similar Threads

  1. [CLOSED] ext:TabPanel: adding controls in JavaScript.
    By supera in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Apr 26, 2012, 4:44 PM
  2. Adding 2 idetical tabs on the same TabPanel
    By ozayExt in forum 1.x Help
    Replies: 5
    Last Post: Aug 22, 2011, 5:12 PM
  3. Problems adding tab to tabpanel
    By xxjt123xx in forum 1.x Help
    Replies: 0
    Last Post: Mar 02, 2011, 10:55 PM
  4. [CLOSED] [0.8.2] Adding new Tab from Tab into a TabPanel problem
    By FVNoel in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 22, 2010, 7:20 AM
  5. TabPanel error on adding tab
    By sz_146 in forum 1.x Help
    Replies: 0
    Last Post: Jan 09, 2009, 9:01 AM

Tags for this Thread

Posting Permissions