Jqgrid set cell background color

Posted by sachin on Stack Overflow See other posts from Stack Overflow or by sachin
Published on 2009-08-19T19:03:40Z Indexed on 2010/05/26 14:31 UTC
Read the original article Hit count: 1495

Filed under:
|
|

In "Custom data tooltips in jqGrid 3.4" discussion, came to know how to use setcell to change the color of the text inside a cell of jqgrid. How can we change the background color of the cell?

Tried the following

jQuery("#list").setCell (row,col,'',{ background-color:'red'})

jQuery("#list").setCell (row,col,'','',{ bgcolor:'red'}

Thanks.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about color