[CLOSED] Problem with dynamic tab loading (0.8.3)

  1. #1

    [CLOSED] Problem with dynamic tab loading (0.8.3)

    Hi Team,

    We are using common script for loading dynamic tabs (Based on Examples explorer) as follows:

    var loadTabPageById = function(tabPanel, url, title, iconClsName, id, reloadTab) {
        
        var tab = tabPanel.getComponent(id);
        if (!tab) {
            tab = tabPanel.add({
                id: id,
                title: title,
                closable: true,
                iconCls: iconClsName ? iconClsName : 'icon-default',
                monitorResize:true,
                autoLoad: {
                    showMask: true,
                    scripts:true,
                    url: url,
                    mode: 'iframe',
                    maskMsg: 'Loading ' + title
                },
                listeners: {
                      activate: {
                        fn: function(el)
                        {                        
                            el.getLayout();
                            el.syncSize();
                            el.doLayout();
                        }
                    }
                }
            });
        }
        tabPanel.setActiveTab(tab);
    
        if (reloadTab) {
            tab.autoLoad.url = url;
            tab.autoLoad.mode = 'iframe';
            tab.autoLoad.maskMsg = 'Loading ' + title;
            tab.iconCls = iconClsName ? iconClsName : 'icon-default';
            if (title && title != '')
                tab.setTitle(title);
            tab.reload();
        }
        tabPanel.setActiveTab(tab);
    }
    When I open tabs from tree Panel (as it loads my site map based on user login) one after another waiting for tab content to be loaded completely it is working fine.

    But if I open multiple tabs (more than one tab) simultaneously without waiting for previous content to be loaded completely, then only active tab content is loaded properly. The other previous tabs UI rendering not done properly as showing in the picture.

    I have highlighted the code that I tried to do in tab activate listener.

    I cannot prepare a test solution as the example cannot represent my real time scenario. I am sending the demo URL for your reference to support email.

    Reproduction:
    1. Once the default page is opened.
    2. From the Navigation (West Area) tree panel try open
    3. Expand the Leave Node and click on "Apply Leave", "Approve Leave" simultaneously without waiting for "First Tab" to be loaded completely (in this case Apply Leave Tab).

    Thanks in advance.
    Attached Thumbnails Click image for larger version. 

Name:	Wrong.jpg 
Views:	106 
Size:	92.1 KB 
ID:	1969   Click image for larger version. 

Name:	Correct.jpg 
Views:	106 
Size:	91.2 KB 
ID:	1970  
    Last edited by geoffrey.mcgill; Dec 01, 2010 at 5:48 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Recently the same issue was with Examples Explorer.

    Here is a link with a solution:
    http://forums.ext.net/showthread.php...ll=1#post44472
  3. #3
    Hi,

    Yes. It worked.

    Thanks and Regards

Similar Threads

  1. Viewport and dynamic loading controls
    By TheAlchemistBR in forum 1.x Help
    Replies: 2
    Last Post: Jan 19, 2012, 1:29 PM
  2. Dynamic Control Loading
    By dtamils in forum 1.x Help
    Replies: 2
    Last Post: Aug 11, 2011, 7:17 AM
  3. Replies: 4
    Last Post: May 31, 2011, 3:53 PM
  4. [CLOSED] Dynamic loading of user controls [1.0]
    By SFritsche in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Feb 11, 2010, 6:08 AM
  5. Possible Bug in dynamic loading
    By Dave.Sanders in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 17, 2008, 5:14 PM

Tags for this Thread

Posting Permissions