[CLOSED] how do one set the maximum character for the tab header.

  1. #1

    [CLOSED] how do one set the maximum character for the tab header.

    how do one set the maximum character for the tab header. For instance I want to set the maximum tab character to 20 and if it is more than 20 I want to have ellipsis activated.
    Last edited by Daniil; Apr 25, 2011 at 8:00 AM. Reason: [CLOSED]
  2. #2
    Hi,

    There is no option to set number of characters, but you can set .MinTabWidth for TabPanel to get ellipsis.

    Example
    <%@ Page Language="C#" %>
    
    <%@ 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 runat="server">
        <title>Ext.Net Example</title>
    </head>
    <body>
        <form runat="server">
        <ext:ResourceManager runat="server" />
        <ext:TabPanel runat="server" MinTabWidth="100">
            <Items>
                <ext:Panel runat="server" Title="Tab1 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" />
                <ext:Panel runat="server" Title="Tab2 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" />
            </Items>
        </ext:TabPanel>
        </form>
    </body>
    </html>
  3. #3
    Another option is to crop the string server-side before setting the .Title property.

    Example

    this.Panel1.Title = "Veeeeeeeeeeey Looooooooog Title".Substring(0,20) + "..";
    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] maximum for numericaxis in charts only allows integer
    By CarpFisher in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 29, 2012, 2:57 PM
  2. [CLOSED] how can I set the maximum character for the menu item.
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 15, 2011, 4:33 PM
  3. Maximum Coolite Desktop Tags
    By jocker_wow in forum 1.x Help
    Replies: 8
    Last Post: Feb 24, 2011, 5:24 PM
  4. Maximum file size for upload
    By CoolNoob in forum 1.x Help
    Replies: 3
    Last Post: Jan 07, 2010, 3:57 PM
  5. [CLOSED] TextArea Maximum Words
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 09, 2009, 1:01 AM

Posting Permissions