PDA

View Full Version : Set column header css and placeholder



brunoferoleto
25 May 2012, 8:58 AM
Is there a way to set a CSS for my columns headers? And a placeholder, like a variable that will be filled when the store is loaded, like the dataIndex. What I want is the header to have different names, according to what comes into a json.

scottmartin
26 May 2012, 8:31 AM
You can use the following:

column.setText('new title')
css: .x-column-header

Regards,
Scott.

brunoferoleto
28 May 2012, 5:37 AM
I'm already setting this css using the "addCls" method. If I use the "cls" config it will be used for the grid cells not the header am I right?