The reason is the code fnActionsGridComplete
. I recommend you to read the answer which explains why it's very important to use gridview: true
and reduce the number of changes of DOM elements of the page.
What you try to do seems could be implemented by adding cellattr
to the column "IsItemNew"
. The code could be about the following
cellattr: function (rowId, value) {
// additional parameter of cellattr: rawObject, cm, rdata are optional
if (value === "Y") {
return ' style="font-weight:bold;"';
}
}
Alternatively you can add class
attribute instead of style
and define font-weight: bold
in the class.
I recommend you to read the answer, this one, this one etc. If you would need to set some properties on the whole row instead of the cell only you can use rowattr
(see the answer).
If you would include gridview: true
and use cellattr
, rowattr
or custom formatters you would see that the performance of the grid will be on absolutely another level.