jerry
jerry

Reputation: 183

How to SET JQGRID ROW background color?

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

Thanks in advance,

Upvotes: 3

Views: 24428

Answers (1)

Oleg
Oleg

Reputation: 222017

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.

Upvotes: 6

Related Questions