Author Topic: Mark column as required / Add css class to column header only  (Read 2606 times)

jeff_b

  • Newbie
  • *
  • Posts: 9
    • View Profile
Mark column as required / Add css class to column header only
« on: January 27, 2016, 01:43:24 am »
I have a requirement where a grid will 10 columns with only column 1 and 5 required.   We are looking for a way to make it clear that the columns are required.  I have added stars to the title but I am not sure I like the appearance of that.  Is there a way to color the title font / add a class to JUST the header.  (I tried the cls tag in column model but it appears that only gets applied to the rows).

Basically: Is it possible to mark only required headers in a certain manner?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6297
    • View Profile
Re: Mark column as required / Add css class to column header only
« Reply #1 on: January 27, 2016, 05:34:54 pm »
Title font can be changed with inline css.

Code: [Select]
title: "<span style='color:red;'>Rank</span>"