Hi
I have a GridPanel with a booleancolumn something like (simplified code to show all involved which I think may be relevant):
PHP Code:
var grid = new Ext.grid.GridPanel({
...
cm: new Ext.grid.ColumnModel({
defaults: {width: 90,sortable: true},
columns: [
{header: 'Header',dataIndex:'neemtdeel',editor:{xtype:'checkbox'},renderer: function(){alert('Hi');},width:50,xtype:'booleancolumn'},
... // other columns
]
}),
plugins:[new Ext.ux.grid.RowEditor({cancelText: 'Annuleren',saveText: 'Bewaren'})],
sm = new Ext.grid.RowSelectionModel(),
...
But whatever I try, the renderer function never seems to fire (I also tried console.info).
The renderers seem to work for other column types, but not for boolean although as far as I can tell, it's documented.
What I'm trying to do, by the way, is not only use trueText and falseText (not showing for simplicity) but to have a class which sets the complete cell green or red to have a real visual effect.
All help appreciated!
Patrick