PDA

View Full Version : TabPanel with autoLoad fails on refresh via POST



mike1993
21 Sep 2009, 6:26 AM
After switching from 2.0 to 3.0 I cannot successfully reload the tabpanel configured w/ autoLoad() via POST.



var contentPanel = {
id: 'panel-content'
,xtype: 'tabpanel'
,activeTab: 0
,autoScroll: true
//,bodyStyle: 'padding: 0 15px; background: white;'
,bodyStyle: 'padding: 0px 15px 0 0; background: white;'
,border: true
,defaults:{
autoScroll: true
,autoHeight: true
,bodyStyle: 'padding: 15px;'
}
,enableTabScroll:true
,layoutOnTabChange: true
,margins: '5 0 0 0'
,minSize: 750
,minTabWidth: 100
,minWidth: 750
,plain: true
,plugins: new Ext.ux.TabCloseMenu()
,region: 'center' // this is what makes this panel into a region within the containing layout
,items: [{
title: 'Activity Graphs'
//,autoScroll: true
,autoHeight: true
,closable: false
,bodyStyle: 'padding: 0 15px;'
,style: 'padding: 0;'
,autoLoad : {
url: pageConfig.graphUrl // + '?sid=' + pageConfig.ses_id + '&rm=graph' + '&ajax=1'
,scripts: true
,loadScripts: true
,nocache: true
,text: 'Loading Call Activity Graph(s) ...'
,params: {
ajax: 1,
rm: 'graph',
sid: pageConfig.ses_id
}
}
,tbar:[{
text: 'Refresh',
handler: function() {
console.log('updater: ', Ext.getCmp('panel-content').items.itemAt(0).getUpdater() );
Ext.getCmp('panel-content').items.itemAt(0).getUpdater().refresh();
},
iconCls: 'x-tbar-loading'
}]
}]
};


No parameters are being passed to the server during refresh request. I looked into Updated object (see img attached ) 'params' attribute is nowhere to be found.

The very same code worked perfectly fine under 2.0. What am I missing here?

Thanks!