
shirley wang
Top achievements
Rank 1
shirley wang
asked on 28 Jun 2010, 06:45 PM
Dear People,
In GridView if one column is filtered, the filter symbol will be filled with the color orange. How can i change the fillcolor to red?
Best wishes
Shirley
In GridView if one column is filtered, the filter symbol will be filled with the color orange. How can i change the fillcolor to red?
Best wishes
Shirley
7 Answers, 1 is accepted
0
Hello Shirley,
You can do that by editing the template of the header cell. In it you will find a FilteringDropDown control. Editing its template will give you a ToggleButton which is the one you need to colorize and a Popup which contains the filtering UI. Once you get there look for a LinearGradientBrush with the following key GridView_FilterIconBackground_Filtered and change it to Red. This will do the trick.
Also I am sending you a sample app which does just that. I hope you will find it useful.
All the best,
Kalin Milanov
the Telerik team
You can do that by editing the template of the header cell. In it you will find a FilteringDropDown control. Editing its template will give you a ToggleButton which is the one you need to colorize and a Popup which contains the filtering UI. Once you get there look for a LinearGradientBrush with the following key GridView_FilterIconBackground_Filtered and change it to Red. This will do the trick.
Also I am sending you a sample app which does just that. I hope you will find it useful.
All the best,
Kalin Milanov
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0

shirley wang
Top achievements
Rank 1
answered on 30 Jun 2010, 04:54 PM
Hello Kalin,
Thank you very very much. That solved a lot of problem of mine. 2 questions:
1. I just want to change the fill color, should i copy the whole xaml Code.
2. I have Telerik source Code because my firma buyed the lizence. If i need, where can find such xaml code.
Thank you.
Best wishes
Shirley
Thank you very very much. That solved a lot of problem of mine. 2 questions:
1. I just want to change the fill color, should i copy the whole xaml Code.
2. I have Telerik source Code because my firma buyed the lizence. If i need, where can find such xaml code.
Thank you.
Best wishes
Shirley
0

shirley wang
Top achievements
Rank 1
answered on 30 Jun 2010, 05:31 PM
Hello Kalin,
I tried the code in my program. That does not work. It seems like the code only work with silverlight 4. But we must use silverlight 3.
Errormessage: Invalid XAML.
Best Wishes
Shirley
I tried the code in my program. That does not work. It seems like the code only work with silverlight 4. But we must use silverlight 3.
Errormessage: Invalid XAML.
Best Wishes
Shirley
0
Accepted
Hi Shirley,
There really is no difference in the Silverlight 3 and Silverlight 4 code apart from the namespaces used. In any case I have remade the sample targeting Silverlight 3 environment.
Best wishes,
Kalin Milanov
the Telerik team
There really is no difference in the Silverlight 3 and Silverlight 4 code apart from the namespaces used. In any case I have remade the sample targeting Silverlight 3 environment.
Best wishes,
Kalin Milanov
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0

shirley wang
Top achievements
Rank 1
answered on 23 Jul 2010, 04:39 PM
Now i know why it does not work. I use Office_Blue as Theme. Can i get a copy of such template xaml code for Office_Blue?
Thank you.
Best wishes
Shirley
Thank you.
Best wishes
Shirley
0
Accepted
Hello shirley wang,
I am attaching the XAML for the Office Blue theme. You can find what you need inside it.
Best wishes,
Ross
the Telerik team
I am attaching the XAML for the Office Blue theme. You can find what you need inside it.
Best wishes,
Ross
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0

shirley wang
Top achievements
Rank 1
answered on 28 Jul 2010, 12:04 PM
Thank you very much Ross. Exactly what i want.