开发者

jqgrid custom row colors

开发者 https://www.devze.com 2022-12-12 09:20 出处:网络
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 t

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

精彩评论

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