Is there a way to set the background color for rows (igxgrid) dynamically based on a status column(string/number) value?
green - completed
red - errors
blue - running
Yes, it is possible and you can see how you could achieve the approach from the sample here.
If you have further questions, please contact us again.
Thanks for your reply. Sample link isn't working. Can you please check?
Sorry about the inconvenience. Could you please try again with the new link.
Thanks for updating the link. In the example you are changing row color on a button click event which is not am looking.
On igxgrid loading data I want to set different colors for each row based on a grid column value either number or string.(as in screenshot)
The goal of the sample was just to show how you could change the background color.
Again the sample was modified in order to show how you could achieve your scenario.
Next time please try to go through the API documentation of the component you need to interact with and see what are the capabilities that the component provides. I think the documentation is enough descriptive and intuitive.
Also we have a documentation describing some common configurations of the components with the samples attached to it.
We would be glad if you could provide us with some feedback related to both documentations I have referred above. If there is something you don't understand or it is not enough clear, please let us know.