Hello
I was wondering if there is an easy way to apply a css style to an entire row (at tr tag level) depending on one of the values. For example; I will need to make all text in italics in all cells for a row depending on 1 one the values.
I understand that I could create a complete template of the row in a script and apply it to iggrid, but that would mean that I will have to do this for every grid. I was wondering of there is an easier way.
Thanks
Herald
Hello Herald,
Thank you for posting in our forums!
We typically recommend that you use the igGrid's rowsRendered event to apply a style to a row. You can see an example of how to do this in this jsFiddle.
In my sample, I iterate through each of my rows during the rowsRendered event and if the Discontinued value is true, I set the "badRow" class which sets the row to be italic and sets the background-color.
If you have any further questions or concerns with this, please let me know and I will be glad to help.