PDA

View Full Version : reconfiguring plugins after grid reconfigure in gridpanel



Vamsi KP
25 Aug 2011, 9:50 PM
I need to reconfigure summary plugin after grid reconfigure. Can anyone let me know how to do the reconfiguring of summary plugin after grid reconfigure

below is the reconfig code.
var GRIDCM = new Ext.grid.ColumnModel({
defaults: {
width: 120,
sortable: true
},
columns: [{dataIndex: 'start_date',header: 'Start Date',width: 100, align: 'left', tp:'string',renderer:Ext.util.Format.dateRenderer('m/d/Y')},
{dataIndex: 'end_date',header: 'End Date',width: 100, align: 'left', tp:'string',renderer:Ext.util.Format.dateRenderer('m/d/Y')},
{dataIndex: 'Status',header: 'Status',width: 100, align: 'left', tp:'string'},
{dataIndex: 'eom_booked',header: 'EOM Booked',width: 100,align: 'right', renderer: usMoneyWODecimalNFT, tp:'decimal',summaryType: 'sum'},
{dataIndex: 'mtd_ama',header: 'MTD AMA',width: 100,align: 'right', renderer: usMoneyWODecimalNFT, tp:'decimal',summaryType: 'sum'},]
});
this.NFTGrid.reconfigure(this.NFTGridStore, GRIDCM);

====
Thanks & Regards
Hari