1 2 3 4 5 6 7 8 9 10 11 12
|
var colModelJustifs = new Ext.grid.ColumnModel([new Ext.grid.RowNumberer(),
{header: 'Nature', width: 120, sortable: true, dataIndex: 'nature', editor:new Ext.form.ComboBox({allowBlank:false,msgTarget:'side',mode:'local',displayField:'designation',store:dsNature,valueField:'code'})},
{header: 'Type', width: 120, sortable: true, dataIndex: 'type', editor:new Ext.form.ComboBox({allowBlank:false,msgTarget:'side',mode:'local',displayField:'designation',store:dsType,valueField:'code'})},
{header: 'Date de souscription', width: 100, sortable: true, dataIndex: 'Date_de_souscription',renderer: Ext.util.Format.dateRenderer('dd/MM/yyyy'), editor:new Ext.form.DateField({allowBlank:true,msgTarget:'side'})},
{header: 'Montant', width: 100, sortable: true, dataIndex: 'Montant', editor:new Ext.form.NumberField({allowBlank:true,msgTarget:'side'})},
{header: 'Nom du souscripteur', width: 100, sortable: true, dataIndex: 'Nom_du_souscripteur', editor:new Ext.form.TextField({allowBlank:true,msgTarget:'side'})},
{header: 'Signataire', width: 100, sortable: true, dataIndex: 'Signataire', editor:new Ext.form.TextField({allowBlank:true,msgTarget:'side'})},
{header: 'Commentaires', width:100, sortable:true, dataIndex: 'commentaires'}
]);
pnlListe.items[0].cm = colModelJustifs; |
Partager