PDA

View Full Version : Grid in 3.4. (update from 2.2)



karstenvennemann
9 Nov 2011, 4:03 PM
Hi,

I have a grid in ext 3.4.0 - the following works in Firebug with ExtJS 2.2 but not in 3.4 (I get only one record instead of 2 to show up) any ideas what is wrong?


Ext.getCmp("resultgridid").reconfigure(
new Ext.data.Store({
reader: new Ext.data.ArrayReader({id:0}, Ext.data.Record.create([{name: 'name'},{name: 'povNum', type: 'int'}])),
data:[['Adams',2578],['Ferry',1466]]
}),
new Ext.grid.ColumnModel([{header:'Name',dataIndex:'name'},{header: 'Pov.Num.2000',dataIndex:'povNum'}])
)

mitchellsimoens
10 Nov 2011, 4:57 AM
Have you checked to make sure your new Store has 2 items in it?