Author Topic: colModel cls doesn't change the header  (Read 3974 times)

stoodin

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 85
    • View Profile
colModel cls doesn't change the header
« on: October 16, 2014, 06:26:47 pm »
I need to change a header for some of the columns. For example every 3rd column header should have a border.
I am using cls property and it works for entire column but header.
.pq-grid td.pq-grid-col css is changing the style for all columns including header, but I need just a few not all
How do I change header border for specific headers?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: colModel cls doesn't change the header
« Reply #1 on: October 16, 2014, 08:06:02 pm »
I'm not getting your question:

Is that a problem with assigning css to the header as suggested by the subject of your topic? In that case please refer this demo where style is applied to header with help of css class.

http://paramquery.com/pro/demos/showhide_columns

stoodin

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 85
    • View Profile
Re: colModel cls doesn't change the header
« Reply #2 on: October 16, 2014, 08:14:51 pm »
Sorry, let me clarify my question:

I have a grid with 10 columns and each column has a title.
I need to change the HEADER CELL "border-right=solid 1px black;" on 3rd, 5th, 7th and 9th columns. The rest of the headers will have a regular border.
Let me know if it is clear now.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: colModel cls doesn't change the header
« Reply #3 on: October 16, 2014, 09:19:25 pm »
you could assign some class ( column.cls ) say bb to the 3rd, 5th, 7th, 9th columns.

In the css rule:
table.pq-grid-header-table tr td.bb{       
   border-right:1px solid black;
}

stoodin

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 85
    • View Profile
Re: colModel cls doesn't change the header
« Reply #4 on: October 16, 2014, 11:26:19 pm »
FANTASTIC!!! That is exactly what I need