Is there any way to apply a specific CSS class to all cells in a given column in a JQGrid?
Based off the documentation, looks like you can give columns specific classes when setting up your colModel:
jQuery("#grid_id").jqGrid({
...
colModel: [
{ name: ..., classes: "col1", ... },
{ name: ..., classes: "col2", ... },
...
],
...
});
Then you should be able to just style as normal, eg:
td.col1 { background-color: #f00; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With