[CLOSED] Issues in Tab Control

  1. #1

    [CLOSED] Issues in Tab Control

    I am having few questions on Tab control

    1) How to give relative path in the Tab URL, i am trying to give the path as URL="../Default2.aspx " but I am not able to get that page. I am getting the page when I set absolute path which is causing several problems while publishing the site

    2) How to avoid the title in the tab, I do not want to show the title

    3)How to fix the size of the title bar for a tab, in few scenarios I need to have tab with fixed size for title. Is that possible?

    Please find the following code for adding tab with title and url

    Javascript function

    function addTab(tabPanel, id, url,TitleMsg) {        
        var tab = tabPanel.getComponent(id);
        if (!tab) {
            tab = tabPanel.add({ 
                id: id, 
                title: '', 
                closable:false,                    
                autoLoad: {
                    showMask: true,
                    //url: url,
                    mode:'iframe',
                    maskMsg: 'Loading ' + url + '...'
                }                    
            });
        }
        tabPanel.setTitle(TitleMsg);
          tabPanel.load(
          {
          title:TitleMsg,
          showMask: true,
          url:url,
          title:TitleMsg
          });
          tabPanel.setActiveTab(tab);
    }
    Markup

    <ext:TreeNode Text="<%$Resources:Resource,strMessages%>" IconCls="messages-icon">
        <Listeners>
            <Click Handler="addTab(#{tbpnlContent}, 'idClt', 'http://localhost:2021/TestApp/Default2.aspx',Page2');" />
        </Listeners>
    </ext:TreeNode>
  2. #2

    RE: [CLOSED] Issues in Tab Control

    Hi Etisbew,

    1. I'm not really sure what you mean. Can you provide more information? I ran a few tests and setting the url to a relative path works correctly.

    2. You can set the title to a &amp;nbsp;

    3. You can set the minimum width of the tabs by setting the MinTabWidth property. At the moment, you'll also have to set the ResizeTabs property to 'true'.

    Example

    <ext:TabPanel 
        ID="TabPanel1" 
        runat="server"
        Height="300"
        MinTabWidth="60"
        ResizeTabs="true">
    </ext:TabPanel>
    Hope this helps.

    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Issues related to custom control
    By AnulekhaK in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 22, 2012, 12:26 PM
  2. [CLOSED] IE9 Issues
    By pint in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Apr 19, 2011, 12:03 PM
  3. [CLOSED] IE9 issues
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 13
    Last Post: Mar 28, 2011, 7:06 PM
  4. [CLOSED] Two issues with the gridpanel control.
    By seanwo in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 21, 2010, 7:19 PM
  5. Replies: 1
    Last Post: Sep 04, 2009, 9:14 AM

Posting Permissions