When a cell renders I want to change the styling of the cell based on some business rules. I see there is a property ''pq_cellcls" that is exposed declaratively. I imagine I can override this programmatically in JS by am unsure how?
VRfGPf_Pageobj.colModel = [
{ title: 'Label', editable: function (ui) { return oa.IsCellEditable(ui); },
render: function (ui) { return oa.RenderCell(ui); },
width: 200, dataType: 'text', validations: [
{type: 'minLen', value: '1', msg: 'Label is mandatory'}
] }, ...
JS snippet:
oa.RenderCell = function (ui) {
var r = ui.rowIndx;
var c = ui.column.dataIndx;
//how do I change the styling of the cell here?
Thanks.