Forum /
Ext JS 2.x - Unsupported /
Ext 2.x: Bugs /
Why Ext.ux.grid.GridSummary got error "this.ds.fields is undefined"
Why Ext.ux.grid.GridSummary got error "this.ds.fields is undefined"
I checking all my import javascript file url is correct.And all the file is exists in my folder.I still having this type of error "this.ds.fields is undefined".So pls help me to solve my prob.
here is my code:
plStore = new Ext.data.Store();
plColModel = new Ext.grid.ColumnModel([
new Ext.grid.RowNumberer(),
{ header: "UserName", width: 100, dataIndex: 'UserName' },
{ header: "Amt", width: 100, dataIndex: 'Amt', align: 'right' },
{ header: "WinAmt", width: 100, dataIndex: 'WinAmt', align: 'right' },
{ header: "ComAmt", width: 100, dataIndex: 'ComAmt', align: 'right' },
{ header: "Com + Win" width: 100, dataIndex: 'ComWin',summaryType: 'sum', align: 'right', css: 'background-color:#f2f1da !important;' },
]);
summary = new Ext.ux.grid.GridSummary();
GroupHeaderGrid = new Ext.ux.plugins.GroupHeaderGrid({
rows: [[
{ header: ' ', colspan: 3, align: 'center' },
{ header: 'Member', colspan: 3, align: 'center' }
]]
});
new Ext.FormPanel({
items[ {
xtype: 'grid',
id: 'plGrid',
title: 'All Accounts',
trackMouseOver: false,
enableHdMenu: false,
enableColumnMove: false,
store: plStore,
colModel: plColModel,
width: 950,
height: 340,
frame: true,
plugins: [GroupHeaderGrid,summary]
}
}]
});
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us