1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| var GridComForet = new Ext.grid.GridPanel({
id:'eesai',
store : new Ext.data.SimpleStore({
id:0,
fields: [{name: 'dept'},{name: 'com'},{name: 'surf'}],
data: [
["27","AVIRON (27031)","6.2640"],
["27","GRAVIGNY (27299)","19.6603"],
["27","NORMANVILLE (27439)","146.4642"],
["27","ST GERMAIN DES ANGLES (27546)","5.7580"]
]
}),
fieldLabel: "Commune",
columns:[{width: 10, dataIndex: 'dept'},
{width: 50, dataIndex: 'com'},
{width: 15, dataIndex: 'surf'}],
viewConfig:{forceFit:true},
autoScroll:true,
height: 100,
hideHeaders: true,
frame: true
}); |
Partager