问题
I want to set the JQGRID row bgcolor depends upon the condition? How to do it? Im using php.
Thanks in advance,
回答1:
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.
来源:https://stackoverflow.com/questions/3536285/how-to-set-jqgrid-row-background-color