Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Kush on Mar 24, 2008 09:50
open dhtmlx forum
Adding specific color to specific words in Header Text

Hi,

I am trying to change the color of part of perticular words in the header text.

Say I want three headers,
1)Employee ID (xxx)
2)Emloyeee Name
3) Salary

I just want "(xxx)" to be shown in red / blue color.

How can I do it..

Thanks for your valuable time.

Answer posted by Support on Mar 24, 2008 10:39
Grid accepts HTML tags inside headers, so the simplest way is

grid.setHeader("Employee ID <span style='color:red'>(xxx)</span>,Emloyeee Name,Salary ");