[CLOSED] Tab scroll with async postback

  1. #1

    [CLOSED] Tab scroll with async postback

    Hi,

    I have a TabPanel inside updatepanel and I create tabs dynamically. Problem is, when I create tabs without postback (page get) tab scrollbars appears automatically if needed. This does not occur if I add a tab in postback. I set

    tabPanel.EnableTabScroll = true;
    tabPanel.LayoutOnTabChange = true;
    and call tabPanel.DoLayout() but result is same. Is there a method like recheckscroolbars or something like that ?

    -tansu
  2. #2

    RE: [CLOSED] Tab scroll with async postback

    Sorry, forgot to add [1.0]
  3. #3

    RE: [CLOSED] Tab scroll with async postback

    Hi,

    Do you have EnableTabScroll="true" initially? Or you set it dynamically? Can you provide simple test example?
  4. #4

    RE: [CLOSED] Tab scroll with async postback

    Hi Vladimir,

    I set it dynamically because I create TabPanel dynamically.
    If I set it in aspx

    <ext:TabPanel ID="TabPanel1" runat="server" Height="300" EnableTabScroll="true" />
    It works, also in postback. If I set it OnInit;

    protected override void OnInit(EventArgs e)
    {
        TabPanel1.EnableTabScroll = true;
        base.OnInit(e);
    }
    No scroll bars. I also tried to derive a new class from TabPanel.

    internal class DashboardTabPanel : TabPanel
    {
        public override bool EnableTabScroll
        {
            get
            {
                return true;
            }
            set
            {
                base.EnableTabScroll = value;
            }
        }
    }
    So, what may be the problem ? Attach please find a sample.

    Thanks.

    -tansu
  5. #5

    RE: [CLOSED] Tab scroll with async postback

    I'm trying to figure out the problem Vladimir, can it be a css problem like overflow hidden ?
  6. #6

    RE: [CLOSED] Tab scroll with async postback

    Hi,

    You have to set Width (or put tabpanel inside layout) for TabPanel. Just set Width="500" for the TabPanel
  7. #7

    RE: [CLOSED] Tab scroll with async postback

    Hi Vladimir,

    But I don't set width if I set EnableScrollbars in aspx. It just works without setting a width.

    There seems a bug. If you just set Height (not width) scrollbars appear.

    No scrollbars:

    <ext:TabPanel ID="TabPanel1" runat="server" EnableTabScroll="true" />
    Scrollbars appear:

    <ext:TabPanel ID="TabPanel1" runat="server" Height="300" EnableTabScroll="true" />
    I set AutoWidth and problem resolved. Thanks.

    -tansu
  8. #8

    RE: [CLOSED] Tab scroll with async postback

    Hi,

    Ya, may be. We will look into it
    Just I always try to keep a good rule: Define size explicitly or place the control in the layout. It can help to avoid many issues

Similar Threads

  1. Async refresh page
    By fangmdu in forum 2.x Help
    Replies: 1
    Last Post: Jul 02, 2012, 8:03 PM
  2. [CLOSED] Async TreeGrid Example
    By Aparna_B in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 15, 2012, 5:19 PM
  3. [CLOSED] Async with direct Event
    By imaa in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 09, 2011, 9:46 PM
  4. Icons not displayed on Async Postback
    By r_honey in forum 1.x Help
    Replies: 2
    Last Post: Mar 10, 2009, 2:48 PM
  5. Replies: 1
    Last Post: Jun 04, 2008, 10:28 PM

Posting Permissions