Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to SET JQGRID ROW background color?

Tags:

jqgrid

I want to set the JQGRID row bgcolor depends upon the condition? How to do it? Im using php.

Thanks in advance,

like image 358
jerry Avatar asked Nov 26 '25 18:11

jerry


1 Answers

look at jqGrid Coloring an entire line in Grid based upon a cells value. You should examine current row values after data loading (inside of loadComplete for example). For the elements where you want change the background-color you should remove 'ui-widget-content' css class and then add another class which defines the color which you want.

like image 70
Oleg Avatar answered Nov 28 '25 17:11

Oleg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!