Bonjour

Pouvez me dire pourquoi je n'obtiens qu'une ligne dans mon grid?

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
 
		});


2°) Comment puis-je désactivé le clic sur le grid. Bref je cherche a avoir un affichée par tableau tout simple.

Merci de votre Tio