Is it possible to call jqGrids loadComplete function and highlight specific cells in a column that meet or exceed a specific threshold. Here is what I’m attempting to do:
loadComplete: function() {
var threshold = '5';
// How do I iterate through each row and check for a value exceeding my threshold?
$.each(rows,function(index, value) {
//alert("index: " + index);
grid.jqGrid('setCell',index,"name", '', {'color':'red'});
});
}
Hope this example is what your looking for. The function loops through the cells, if the celldata contains ‘%g’ it applies the CSS syle defined towards top. Just set the CSS to whatever highlighting style you would like.