PDA

View Full Version : problem with groupheader plugins



ing.amdangelo
9 Jan 2012, 3:22 AM
// griglia dei Costi


var grdCosti = new Ext.grid.EditorGridPanel({
id: 'grigliaCosti',
store: strCosti,
loadMask: true,
stripeRows: false,
style: 'margin-left: 10px;',
autoExpandColumn: 'colDescrizioneCosto',
viewConfig: {
forceFit: true
},
clicksToEdit: 1,
height: 100,
autoScroll: true,
disableSelection: false,
ddGroup: 'costi-dd',
selModel: new Ext.grid.RowSelectionModel({
singleSelect: true
}),
enableDragDrop: true,
ddText: 'Sposta Costo',
columns: [
{
id: 'colVoceCosto',
name: 'voceCosto',
header: 'voce Costo',
dataIndex: 'voceCosto',
sortable: true
},
{
id: 'colDescrizioneCosto',
name: 'descrizioneCosto',
header: 'Descrizione',
dataIndex: 'descrizioneCosto'
},
{
id: 'colImponibile',
name: 'imponibile',
header: 'Imponibile ',
dataIndex: 'imponibile',
align:'right'/*,
width: 70*/
},
{
id: 'colIva',
name: 'iva',
header: 'Iva (%)',
dataIndex: 'iva',
align: 'right'/*,
width: 60*/
},
{
id: 'coltotale',
name: 'totale',
header: 'Totale ',
dataIndex: 'totale',
align: 'right'/*,
width: 60*/
},
{
id: 'modificaCosto',
name: 'modificaCosto',
width: 30
},
{
id: 'eliminaCosto',
name: 'eliminaCosto',
width: 30
}
],
plugins: [new Ext.ux.plugins.GroupHeaderGrid({
row: [
[{},
{},
{ header: 'Costo', colspan: 3, align: 'center' },
{},
{}],
]
})]


});

Why doesn't work ????

mitchellsimoens
9 Jan 2012, 8:01 AM
What do you mean that it doesn't work?

ing.amdangelo
9 Jan 2012, 8:39 AM
I solved ...
Can you tell how to set a post solved ??
:-/