You can write a custom formatter to achieve this. For instance:
formatStatus: function (cellvalue, options, rowObject){
if (cellvalue == "ACTIVE")
return "Active";
return "InActive";
}
Then make sure you use the formatter from your colmodel:
{name: 'status', formatter: formatStatus, ...},
Does it help?
source
share