Keep row highlight from row callback after sorting
Keep row highlight from row callback after sorting
I am using this:
[code]
"fnRowCallback": function (nRow, aData, iDisplayIndex) {
if (aData[8] == "True") {
$(nRow).addClass("alert-highlight");
}
return nRow;
}
[/code]
but after any sort that causes the highlighted rows to move, they are no longer highlighted. Note, using the bootstrap update for datatables.
[code]
"fnRowCallback": function (nRow, aData, iDisplayIndex) {
if (aData[8] == "True") {
$(nRow).addClass("alert-highlight");
}
return nRow;
}
[/code]
but after any sort that causes the highlighted rows to move, they are no longer highlighted. Note, using the bootstrap update for datatables.
This discussion has been closed.