1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
var store = new Ext.data.ArrayStore({
fields: [
{name: 'Processus'},
{name: 'Nom', type: 'string'},
{name: 'Nb', type: 'int'},]
});
store.loadData(mydata);
var grid = new Ext.grid.GridPanel({
store: store,
listeners:{
rowclick: function(grid, rowIndex, e) {
//document.DDT.proc.value=id;
//document.DDT.submit();
deuxieme_grid("valeur de la colonne 0 de la ligne 'rowIndex'");}
},
columns: [
{id:'Processus',header: 'Processus', width: 60, sortable: true, dataIndex: 'Processus'},
{header: 'Nom', width: 175, sortable: true, dataIndex: 'Nom'},
{header: 'Nb', width: 40, sortable: true, dataIndex: 'Nb'}],
stripeRows: true,
height: 150,
width: 280,
title: 'Processus',
stateful: true,
stateId: 'grid' |
Partager