This is a migrated thread and some comments may be shown as answers.

GridView filter symbol

7 Answers 112 Views
GridView
This is a migrated thread and some comments may be shown as answers.
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

7 Answers, 1 is accepted

Sort by
0
Kalin Milanov
Telerik team
answered on 30 Jun 2010, 07:59 AM
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
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



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



0
Accepted
Kalin Milanov
Telerik team
answered on 06 Jul 2010, 07:29 AM
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
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
0
Accepted
Rossen Hristov
Telerik team
answered on 27 Jul 2010, 09:50 AM
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
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.
Tags
GridView
Asked by
shirley wang
Top achievements
Rank 1
Answers by
Kalin Milanov
Telerik team
shirley wang
Top achievements
Rank 1
Rossen Hristov
Telerik team
Share this question
or