[CLOSED] Add multiple dynamic tab (e.g. iframe) to tabpanel and load this immediately via Code behind

  1. #1

    [CLOSED] Add multiple dynamic tab (e.g. iframe) to tabpanel and load this immediately via Code behind

    Hi Team,

    Is that possbile to add multiple dynamic tab (e.g. iframe) to tabpanel and load this immediately via code behind?


                        Panel pendingTicketProblemReportingProblemReportingTab = new Panel();
                        pendingTicketProblemReportingProblemReportingTab.ID = String.Format(TabIdTemplate.TabProblemReportingEntityListTemplate, EntityCodeValue.PendingTicket);
                        pendingTicketProblemReportingProblemReportingTab.Border = false;
                        pendingTicketProblemReportingProblemReportingTab.AutoLoad.Mode = LoadMode.IFrame;
                        pendingTicketProblemReportingProblemReportingTab.AutoLoad.Url = this.GetAppSetting("UrlProblemReportingEntityList");
                        pendingTicketProblemReportingProblemReportingTab.AutoLoad.Params.Add(new Parameter(ParamName.EntityCode, EntityCodeValue.PendingTicket));
                        pendingTicketProblemReportingProblemReportingTab.AutoLoad.ShowMask = true;
                        pendingTicketProblemReportingProblemReportingTab.AutoLoad.NoCache = true;
                        pendingTicketProblemReportingProblemReportingTab.Icon = Icon.BasketRemove;
                        pendingTicketProblemReportingProblemReportingTab.TabTip = "Pending Request";
                        pendingTicketProblemReportingProblemReportingTab.AddTo(this.pnlMainRequestTabs);
    
                        Panel processTicketProblemReportingProblemReportingTab = new Panel();
                        processTicketProblemReportingProblemReportingTab.ID = String.Format(TabIdTemplate.TabProblemReportingEntityListTemplate, EntityCodeValue.ProcessTicket);
                        processTicketProblemReportingProblemReportingTab.Border = false;
                        processTicketProblemReportingProblemReportingTab.AutoLoad.Mode = LoadMode.IFrame;
                        processTicketProblemReportingProblemReportingTab.AutoLoad.Url = this.GetAppSetting("UrlProblemReportingEntityList");
                        processTicketProblemReportingProblemReportingTab.AutoLoad.Params.Add(new Parameter(ParamName.EntityCode, EntityCodeValue.ProcessTicket));
                        processTicketProblemReportingProblemReportingTab.AutoLoad.ShowMask = true;
                        processTicketProblemReportingProblemReportingTab.AutoLoad.NoCache = true;
                        processTicketProblemReportingProblemReportingTab.Icon = Icon.World;
                        processTicketProblemReportingProblemReportingTab.TabTip = "All Processing Request";
                        processTicketProblemReportingProblemReportingTab.AddTo(this.pnlMainRequestTabs);
    Best Regards,
    Terry
    Last edited by Baidaly; Jun 20, 2013 at 11:27 PM. Reason: [CLOSED]
  2. #2
    Hi Terry,

    and load this immediately via code behind?
    All the dynamic tabs immediately? By default, a TabPanel renders tabs on first activation. So, a tab can load its content if it is rendered itself. To change this default behavior, you can set up DeferredRender="false". It will cause that all tabs should be rendered at the moment they are added to a TabPanel. But it doesn't 100% mean that tabs will load its content. I recall the issue when a browser (seems, IE) don't want to load a hidden iframe. Seems, the solution was activating all the tabs.
  3. #3
    Hello!

    To load it you should use
    pnlMainRequestTabs.SetActiveTab(pendingTicketProblemReportingProblemReportingTab);
  4. #4
    Hi Baidaly,

    pnlMainRequestTabs.SetActiveTab(pendingTicketProblemReportingProblemReportingTab);
    The above is loaded one tab. I would like to load/preload all tabs. Thx vm.

    Hi Daniil,

    I have tried DeferredRender="false" for iframe. However, this does work.

    Besides, the application must support IE. Thx vm.

    Best Regards,
    Terry
  5. #5
    Quote Originally Posted by kwcitadmin View Post
    Hi Daniil,

    I have tried DeferredRender="false" for iframe. However, this does work.

    Besides, the application must support IE. Thx vm.
    Did you mean that it doesn't work instead of "does work"?
  6. #6
    Hi Daniil,

    Yes, you are correct. This doesn't work. Thx vm.

    Best Regards,
    Terry
  7. #7
    Then, unfortunately, the only way is activating all the tabs.
    tabPanel.items.each(function (tab) {
        tabPanel.setActiveTab(tab);
    });
    
    tabPanel.setActiveTab(tabWhichShouldBeActuallyActivated);
    You can try to mask this process.

    Please note that a hidden iframe is not loaded on the IE level. Unfortunately, we cannot affect it.
  8. #8
    Hi Daniil,

    Got this. Thx vm.

    Best Regards,
    Terry

Similar Threads

  1. [CLOSED] Issue with Multiple Tabs (iframe) in TabPanel
    By softmachine2011 in forum 2.x Premium Help
    Replies: 3
    Last Post: Oct 26, 2012, 12:42 PM
  2. Replies: 2
    Last Post: Apr 12, 2012, 6:44 AM
  3. [CLOSED] DeferredRender in TabPanel with dynamic load of Panels
    By reto.ruemmeli in forum 1.x Premium Help
    Replies: 4
    Last Post: May 21, 2010, 5:02 AM
  4. Replies: 3
    Last Post: Dec 21, 2009, 2:46 AM
  5. Replies: 5
    Last Post: Jun 19, 2009, 7:38 AM

Posting Permissions