Jul 01, 2011, 2:49 PM
AutoLoading a Panel with PartialViewResult but nothing shown...
HI All,
I'm trying to dynamically add a Tab to a tabPanel and loading it through a PartialViewResult returned from my Controller. This is the Javascript I am using:
Regards.
I'm trying to dynamically add a Tab to a tabPanel and loading it through a PartialViewResult returned from my Controller. This is the Javascript I am using:
function selectionChange(selModel, rowIndex, record) {
Ext.getCmp('TabPanel1').add({
title: 'NewTab',
padding: 5,
autoLoad: { url: '/ConfigTool/Details/' + record.data.id },
closable: true
}).show();
}
The Details View is called correctly and for the time being it is only a simple calendar control:<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<ext:CalendarPanel ID="CalendarPanel1" runat="server">
</ext:CalendarPanel>
I can see with Firebug that the call is made and the correct content is returned but nothing is shown in the TabPanel. I have a feeling that it is simply not being refreshed, as I cannot see any other errors in Firebug... Any idea?Regards.