PDA

View Full Version : is it possible to change column color on filtering



amit.vankadia
7 Dec 2010, 11:49 AM
When I do filtering in grid. column header changes to bold and italic. is it possible to change it's color as well.

sven
7 Dec 2010, 11:51 AM
How is this related to the topic? Please open an extra thread for extra unrelated questions. I have done this for you now.

This can be done with css:


.x-grid3-hd-row .x-filtered-column{
color: red;
}

amit.vankadia
7 Dec 2010, 12:20 PM
Thanks I am wondering what is it's .x-grid3 . what is significant behind 3

sven
7 Dec 2010, 12:21 PM
Its a css selector. The name could be anything. I just has to match with the stylenames in the markup

amit.vankadia
7 Dec 2010, 1:27 PM
This works if i put that line directly in to gxt-all.css but if i copy this things into myhtml.css it doesn't work.
can you help little bit more first time dealing with css.

sven
7 Dec 2010, 1:28 PM
how do you include your myhtml.css?

amit.vankadia
7 Dec 2010, 1:38 PM
<link rel="stylesheet" type="text/css" href="gxt/css/gxt-all.css"/>
<link rel="stylesheet" href="AdminConsole.css">

amit.vankadia
7 Dec 2010, 1:38 PM
it worked thanks.

amit.vankadia
27 Jun 2012, 9:22 PM
How can i do it with GXT 3.0 I have above css in my file but it doesn't get picked up