[CLOSED] how load view in tab control

  1. #1

    [CLOSED] how load view in tab control

    We have tabpanel and dynamic add tabs.Url parameter call Action ion Controler,and action return View...But tab control is entry.
      addTab(App.TabPanel1, 'idExt', "/Projekat/Editor?pID=" + record.data.Prj_ID + "&pJesteKopija=false")
    
    
        var addTab = function (tabPanel, id, url) {
                var tab = tabPanel.getComponent(id);
    
                if (!tab) {
                    tab = tabPanel.add({
                        id: id,
                        title: url,
                        closable: true,
                        autoLoad: {
                            showMask: true,
                            url: url,
                            mode: "iframe",
                            maskMsg: "Loading " + url + "..."
                        }
                    });
    
                   
                }
    
                tabPanel.setActiveTab(tab);
            }
    
    
     public ActionResult Editor(string pID, bool? pJesteKopija)
            {
                Projekat projekat = GetProjekat(pID);
                if (pJesteKopija == true) { projekat.Prj_ID = -1; }
                return View(projekat);
            }
    How solved ?
    Last edited by Daniil; Nov 23, 2012 at 11:51 AM. Reason: [CLOSED]
  2. #2
    Hi @boris,

    Please try to replace
    mode: "iframe"
    with
    renderer: "frame"
  3. #3
    Thanks solved problem....

Similar Threads

  1. Replies: 1
    Last Post: Mar 26, 2012, 8:59 PM
  2. Replies: 1
    Last Post: Dec 15, 2010, 2:50 PM
  3. Replies: 2
    Last Post: Oct 29, 2010, 10:04 AM
  4. Replies: 1
    Last Post: Mar 22, 2010, 2:39 PM
  5. [CLOSED] PanelBase.Load hides Control.Load Event
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 22, 2009, 12:36 AM

Tags for this Thread

Posting Permissions