PDA

View Full Version : [CLOSED] Empty tabs in TabPanel when having Models defined



developeriw
Oct 27, 2014, 12:28 PM
Hi,

I am adding a tab with PartialView from the server and this is working OK. But because I have 2 Models defined in the view, there are created two additional empty tabs. When I comment the Models the empty tabs disappear.

The code for adding the tab is something like:

var result = new Ext.Net.MVC.PartialViewResult
{
ViewName = "EditEntity",
ContainerId = containerId,
RenderMode = RenderMode.AddTo,
Model = model
};

Could you please tell me what to do to not have the empty tabs?

Thanks!

developeriw
Oct 27, 2014, 3:51 PM
I fixed the problem by including the Models inside a "@section headtag{ ... }".

Thanks!