iNes14
9 Feb 2012, 7:08 AM
Hello !
I need something special... I have a grouping grid with records. I need, when I clicked a button, change the style of the row selected. Especially the font color. For the moment, I just managed this :
I put a boolean and test it when I load store. But in my style, I can't apply a "color", I just can apply a background color... Any idea ?
var grid = Ext.create("Ext.grid.Panel", {
scroll:true,
flex:2,
maxHeight:900,
store: sStore,
features: [groupingFeature],
pageSize: itemsPerPage,
viewConfig: {
getRowClass: function(record, index) {
var c = record.get('status');
if (c == "deleted") {
return 'ok';
}
}
}
Thank you !
I need something special... I have a grouping grid with records. I need, when I clicked a button, change the style of the row selected. Especially the font color. For the moment, I just managed this :
I put a boolean and test it when I load store. But in my style, I can't apply a "color", I just can apply a background color... Any idea ?
var grid = Ext.create("Ext.grid.Panel", {
scroll:true,
flex:2,
maxHeight:900,
store: sStore,
features: [groupingFeature],
pageSize: itemsPerPage,
viewConfig: {
getRowClass: function(record, index) {
var c = record.get('status');
if (c == "deleted") {
return 'ok';
}
}
}
Thank you !