开发者

jqgrid custom row colors

How can I set the background-color of an entire row (not just cell) using the cu开发者_如何学Cstom formatter?


The custom formatters are used for formatting the cell's data (= text). As far as I know they don't know about the actual cell (meaning a jquery object) but only of it's value.

But usually jqGrid assigns IDs to all rows so setting the background color if you know the rows ID should be only a matter of setting the background color of all td child elements of this row.

$(rowid).children("td").css('background-color', "#5E5E5E");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜