How to change a row color from within a aoColumns?
How to change a row color from within a aoColumns?
![sunbather](https://secure.gravatar.com/avatar/b8174f68089de8a59fbcd234fed99f29/?default=https%3A%2F%2Fvanillicon.com%2Fb8174f68089de8a59fbcd234fed99f29_200.png&rating=g&size=120)
Hello,
I defined my datatable using aoColumns. I have something like this:
[...]{
"title": "myTitle",
"mData": "myMData",
"mRender": function (data, type, val) {
if(val.myMData > 15){
//color entire row red
}
return val.myMData;
}
},[...]
I do not understand how to color the entire row from within that particular column definition.
Thanks!
This discussion has been closed.
Answers
Hi @sunbather ,
Use
createdRow
(if data static) orrowCallback
(if data likely to change) for that,Cheers,
Colin