Changing font color of a column in jqGrid.
Views (906)
Hi,
We had a requirement to change the font color of a particular column in jqGrid. We achieved it in the following manner.

Using the formatter property

The fontColorFormat function
function fontColorFormat(cellvalue, options, rowObject) {
var color = "blue";
var cellHtml = "<span style='color:" + color + "' originalValue='" + cellvalue + "'>" + cellvalue + "</span>";
return cellHtml;
}
Hope it helps!
Filed under: jqGrid, SharePoint, SharePoint 2010, SharePoint 2013 Tagged: jqGrid, SharePoint, SharePoint 2010, SharePoint 2013
This was originally posted here.

Like
Report
*This post is locked for comments