ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: dbadmin on November 17, 2014, 08:48:59 pm
-
Is there any way to prevent it? Is it intended behavior or a bug?
I'd like to highlight cells in a column with a specific background color, but I'd like the header background to be the same all the time (default)
-
It depends upon how the css rule for the class is written:
This applies to grid body cells only
tr.pq-grid-row td.someClass {
background: beige;
}
This applies to grid body cells as well as header cell.
tr td.someClass {
background: beige;
}
-
That solved it! Thanks.
-
If it's required to change style / apply css to header cells only, it can also be done with help of css.
tr.pq-grid-title-row > .pq-grid-col{
background: pink;
}
tr.pq-grid-title-row > .pq-grid-col.green{ /* here green class is added in colModel definition */
background: lightgreen;
}
Example:
http://jsfiddle.net/paramquery/qe1yur0L/1/