Author Topic: column > cls... Can apply only to data, not to header?  (Read 2725 times)

nklapper

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 17
    • View Profile
column > cls... Can apply only to data, not to header?
« 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?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: column > cls... Can apply only to data, not to header?
« Reply #1 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?
« Last Edit: June 08, 2016, 09:24:30 pm by paramquery »

nklapper

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: column > cls... Can apply only to data, not to header?
« Reply #2 on: June 08, 2016, 09:29:07 pm »
I might be.  Would this apply to ALL columns, or just ONE specific column?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: column > cls... Can apply only to data, not to header?
« Reply #3 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