Apr 25, 2011, 7:27 PM
[CLOSED] Dynamically Added Tab not rendering partial view
Hi
I am adding tabs dynamically using the javascript below.
the partialView action is the autoload Url. the parameter is passed to the action.
"AddTo mode can be applied to only a Component."
Please how can I resolve this.
Regards
I am adding tabs dynamically using the javascript below.
tab = tp.addTab({
id: id.toString(),
title: title,
layout:"Fit",
tabTip: config.title,
iconCls: config.icon || 'icon-applicationdouble',
closable: true,
autoStroll: true,
autoLoad: {
showMask: true,
url: config.url,
noCache: true,
maskMsg: "Loading '" + config.title + "'...",
scripts: true,
passParentSize: config.passParentSize,
params: {
"tabId": id.toString()
}
}
});
the the partialView action is the autoload Url. the parameter is passed to the action.
public ActionResult ManageWorkItemPartial(String tabId)
{
Ext.Net.MVC.PartialViewResult partialViewResult = new Ext.Net.MVC.PartialViewResult(tabId);
partialViewResult.RenderMode = RenderMode.AddTo;
partialViewResult.SingleControl = true;
partialViewResult.WrapByScriptTag = true;
return partialViewResult;
}
But I am getting the error message. "AddTo mode can be applied to only a Component."
Please how can I resolve this.
Regards
Last edited by Daniil; May 02, 2011 at 10:34 AM.
Reason: [CLOSED]