[CLOSED] Error in adding tab using code behind

  1. #1

    [CLOSED] Error in adding tab using code behind

    Dear Support,

    When adding a tab and set it as the active tab using direct method from a child, a random error would be produced:

    u.width=j;u.height=o;if(!Ext.isIE){m=k.childNodes;c=Math.max(0,(p-12))+"px";
    where j is -2px


    DirectMethod for adding tab in parent:
    [DirectMethod]
            public void AddTab(string title, string URL)
            {
                        Ext.Net.Panel Panel = new Ext.Net.Panel(title, Icon.PageWhiteText);
                        Panel.ID = title;
                        Panel.AutoLoad.NoCache = true;
                        Panel.AutoLoad.Mode = LoadMode.IFrame;
                        Panel.AutoLoad.Url = URL;
                        Panel.Closable = true;
    
                       TabPanelMain.Add(Panel);
                       Panel.Render();
                       TabPanelMain.SetActiveTab(Panel);
    
            }
    Please note that IE8 is used to run the application.
    Last edited by Daniil; Mar 12, 2013 at 5:32 AM. Reason: [CLOSED]
  2. #2
    Hi @kwcitadmin,

    Please provide a full test case to reproduce the problem.
  3. #3
    I was unable to replicate the problem, but the problem could be solved by adding a delay using event mask.
                parent.Ext.net.DirectMethods.AddTabForm(title, url, {
                    failure: onFailure,
                    eventMask: {
                        showMask: false,
                        minDelay: 500
                    }
                });
    Is that because the tab could not be set as active tab when the page load was not yet finished?
    Are there any better solution?
  4. #4
    Unfortunately, I can't say anything concrete without a sample to reproduce.

Similar Threads

  1. Adding Menu Layout Code Behind
    By fatihunal in forum 1.x Help
    Replies: 2
    Last Post: Nov 11, 2012, 8:48 PM
  2. Replies: 4
    Last Post: Mar 30, 2012, 7:30 PM
  3. Adding datefield handler from code-behind
    By lisaais in forum 1.x Help
    Replies: 1
    Last Post: Jan 06, 2012, 9:00 AM
  4. Adding Controls in Code Behind Causes Event Error
    By niceguymattx in forum 1.x Help
    Replies: 2
    Last Post: May 21, 2010, 9:49 AM
  5. Trouble adding portlet from code behind
    By cmschick in forum 1.x Help
    Replies: 0
    Last Post: Feb 16, 2009, 8:21 AM

Tags for this Thread

Posting Permissions