PDA

View Full Version : [CLOSED] how load view in tab control



boris
Nov 23, 2012, 10:12 AM
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 ?

Daniil
Nov 23, 2012, 11:10 AM
Hi @boris,

Please try to replace

mode: "iframe"
with

renderer: "frame"

boris
Nov 23, 2012, 11:45 AM
Thanks solved problem....