
Originally Posted by
Waldo
How do I add the the RadioColumn plugin to the groupHeaderGrid plugin? I tried the code below, but it doesn't work.
var radioButtons = [
new Ext.grid.RadioColumn({header: '$', inputValue: 1, dataIndex: 'paymentType', width: 8, align: 'center', sortable: false, menuDisabled: true}),
new Ext.grid.RadioColumn({header: 'R', inputValue: 2, dataIndex: 'paymentType', width: 8, align: 'center', sortable: false, menuDisabled: true})
];
var columns = [sm, {id:'productDetails', header: "Product details", width: 40, sortable: true, dataIndex: 'productDetails'}].concat(radioButtons).concat(additionalCols);
var grid = new Ext.grid.EditorGridPanel({
store: store,
columns: columns,
sm: sm,
width: 475,
autoHeight: true,
renderTo: 'radioGrid',
plugins: [new Ext.ux.plugins.GroupHeaderGrid(), radioButtons]
});