Code:
plugins: [new Ext.ux.plugins.GroupHeaderGrid({
rows: [
[
{header: '', colspan: 9, align: 'center'},
{header: 'Lipiec 2010', colspan: 31, align: 'center'}
]
],
hierarchicalColMenu: false
}),
summary,
viewerGridFilters
],
columns : [
{header : 'Projekt', sortable:true, width: 200, menuDisabled: false, dataIndex : 'project', summaryType: 'count', summaryRenderer: totalProjects},
{header : 'Producent', sortable:true, width: 130, menuDisabled: false, dataIndex : 'producer'},
{header : 'Opis', sortable:true, width: 80, menuDisabled: false, dataIndex : 'task'},
{header : 'Data rozpoczęcia', xtype: 'datecolumn', format: 'Y-m-d', sortable:true, width:100, menuDisabled: true, dataIndex : 'start'},
{header : '%', sortable:true, width: 40, menuDisabled: true, dataIndex : 'busy'},
{header : 'Stan', sortable:true, width: 40, menuDisabled: false, dataIndex : 'status', renderer: function (value, meta, record, rowIndex, columnIndex, e) {if (value == true) {return '<div><img src="resources/images/viewer/true.png" /></div>';} else {return '<div><img src="resources/images/viewer/false.png" /></div>';}}},
{header : 'Kwota sugerowana', sortable:true, width: 110, menuDisabled: true, summaryType: 'sum',dataIndex : 'amount1'},
{header : 'Kwota umówiona', sortable:true, width: 100, menuDisabled: true, summaryType: 'sum', dataIndex : 'amount2'},
{header : 'Ilość dni bookingu', sortable:true, width: 50, menuDisabled: true, summaryType: 'sum', dataIndex : 'days'},
{header: '1', dataIndex: 1, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '2', dataIndex: 2, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '3', dataIndex: 3, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '4', dataIndex: 4, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '5', dataIndex: 5, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '6', dataIndex: 6, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '7', dataIndex: 7, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '8', dataIndex: 8, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '9', dataIndex: 9, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '10', dataIndex: 10, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '11', dataIndex: 11, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '12', dataIndex: 12, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '13', dataIndex: 13, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '14', dataIndex: 14, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '15', dataIndex: 15, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '16', dataIndex: 16, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '17', dataIndex: 17, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '18', dataIndex: 18, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '19', dataIndex: 19, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '20', dataIndex: 20, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '21', dataIndex: 21, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '22', dataIndex: 22, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '23', dataIndex: 23, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '24', dataIndex: 24, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '25', dataIndex: 25, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '26', dataIndex: 26, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '27', dataIndex: 27, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '28', dataIndex: 28, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '29', dataIndex: 29, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '30', dataIndex: 30, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})},
{header: '31', dataIndex: 31, width: 25, sortable: false, menuDisabled: true, summaryType: 'sum', editor: new Ext.form.NumberField({allowBlank: true, allowNegative: false, maxValue: 24})}
],