PDA

View Full Version : MVC - Row to change grid row collor with viewConfig



rafaelrp
26 Apr 2013, 6:43 AM
Hello!

I'm trying to change my grid row color with viewConfig, but with no sucsess.

Code:


Ext.define('Pagamator.view.Lan.List', {
extend: 'Ext.grid.Panel',
alias: 'widget.lanlist',

store: 'Lan',

viewConfig: {
getRowClass: function(record, index, rowParams, store) {
return 'green-grid';
}
},
...


Thanks! ~o)

rafaelrp
29 Apr 2013, 6:13 AM
up! ~o)

slemmon
29 Apr 2013, 1:35 PM
You might find this blog post helpful:
http://skirtlesden.com/articles/styling-extjs-grid-cells