You will need to provide the implementation for
createdRow
event that would be called for each row and there you can change style of the row on some business logic like following:
"createdRow": function (row, data, index) {
if (data["Building"] == null)
return;
switch (data["Building"].toLowerCase()) {
case 'west':
$('td:not(:last-child)', row).css({
'background': 'red',
'color': 'white'
});
break;
}
}
What i was doing here is set the row background-color to read and text-color for all the row cells white.
Hope it helps.