ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: nklapper on June 08, 2016, 07:56:58 pm

Title: column > cls... Can apply only to data, not to header?
Post by: nklapper on June 08, 2016, 07:56:58 pm
cls: Class to be assigned to whole column including header.

Is there a way to apply a Class to whole column except for the header?
Title: Re: column > cls... Can apply only to data, not to header?
Post by: paramvir on June 08, 2016, 09:22:34 pm
column.cls is applied to whole column, but the css rules can be applied to the body cells only by applying the css to .pq-grid-cell.

e.g., if 'xls' class is added to a column, it can be combined with .pq-grid-cell

Code: [Select]
.pq-grid-cell.xls{
font-weight: bold;
}

I hope this is what you are looking for?
Title: Re: column > cls... Can apply only to data, not to header?
Post by: nklapper on June 08, 2016, 09:29:07 pm
I might be.  Would this apply to ALL columns, or just ONE specific column?
Title: Re: column > cls... Can apply only to data, not to header?
Post by: paramvir on June 08, 2016, 11:07:50 pm
It applies to the columns whose cls property is assigned.

If you need to assign cls to all columns, then put cls in the columnTemplate.

http://paramquery.com/pro/api#option-columnTemplate