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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
| var LastFolderGrid = new Ext.grid.GridPanel({
//store : storeLoading,
id : "LastFolderGrid",
border: false,
bodyStyle: 'padding: 5px',
//layout :'absolute',
//layout: 'fit',
items: [
{
xtype:'fieldset',
//layout: 'absolute',
//layout: 'fit',
//x: 10,
//y: 5,
//height: (Ext.isIE)?215:225,
height : '95%',
width: '95%',
title: 'Dossier en cours',
//layout: 'absolute',
//border: false,
//bodyStyle: 'padding: 5px',
columns: [
//dataIndex récupère le field du jsonStore
//renderer permet d'appliquer une fct(gras, changer couleur...) à une colonne
{
header: 'Nom du dossier',
width: 30,
sortable: true
//renderer: change,
//dataIndex: 'login'
},
{
header: 'Date d\'arrivée',
width: 30,
sortable: true
//dataIndex: 'nom'
},
{
header: 'Date limite de réponse',
width: 30,
sortable: true
//dataIndex: 'phone'
},{
header: 'Adhérent demandeur',
width: 30,
sortable: true
},{
header: 'Prise en charge',
width: 30,
sortable: true
},{
header : 'Etat',
width: 30,
sortable: true
}
],
viewConfig: {
forceFit: true, /*Specify true to have the column widths re-proportioned at all times.
The initially configured width of each column will be adjusted to fit the grid width and prevent horizontal scrolling.
If columns are later resized (manually or programmatically),
the other columns in the grid will be resized to fit the grid width.*/
autofill : true
}
}]}); |
Partager