Home › Forums › Guriddo jqGrid JS › Help › Custom fonts and colors for cells
Hello all,
I have a requirement in one of my projects where I have to highlight malformed entries on a table.
gridComplete is what I was looking for. Thanks for pointing me in the right direction. 🙂
tony said: Hello, Basically you are in the right direction. In the optins parameter you have the id of the row. So it can be something like function highlight (cellvalue, options, rowObject) { … if(cellValueInt < 600) $(”#”+options.rowId).addClass(”redclass”) else $(”#”+options.rowId).addClass(”blueclass”) … return cellvalue } Regards Tony
tony said:
Hello,
Basically you are in the right direction.
In the optins parameter you have the id of the row. So it can be something like
function highlight (cellvalue, options, rowObject)
{
…
if(cellValueInt < 600) $(”#”+options.rowId).addClass(”redclass”)
else $(”#”+options.rowId).addClass(”blueclass”)
return cellvalue
}
Regards
Tony
My experience is that this
@k2s
Thanks for the correction. It is the way that you write it.
It is my mistake.
Best regards
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS