I have a PropertyEditor in ExtJS.
Ext.define('PropertyEditorGrid', {
//...
this.flexColumnGrid = Ext.create('Ext.grid.property.Grid', {//...
listeners:{
propertychange: function (source, recordId, value,oldValue,eOpts){
me.valueChange(me.id,recordId,value==null?null:value.toString(), oldValue==null?null:oldValue.toString());
}
}//...
}
I want to use 'propertychange' function, if the value is not suitable then print the grid cell text in red color, otherwise print in black color. I tried to use http://skirtlesden.com/articles/styling-extjs-grid-cells, but it doesn't help me.