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

[Solved] Custom GridView filter

1 Answer 142 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Karanjit Siyan
Top achievements
Rank 1
Karanjit Siyan asked on 28 Jun 2011, 04:31 PM
I saw your example on the demos on creating a custom DateFilter

http://demos.telerik.com/silverlight/#GridView/CustomFilterControls

Your standard filters have a little close x box to close the filter.

I would like to know how to 

1. provide the custom close icon. It looks a like a Rad Button with a graphic X. I am using a mix of custom and standard filters and would like the same look and feel. Your code sample does not have the close icon.
2. What method do I call for this close button to close the filter. I know clicking on the funnel icon closes the filter but your standard filters have a separate close capability and I want the same look and feel.
3. In the background color for the border in the example, you are using a simple brush. In the standard filters you are using a gradient brush. What values do I use for this gradient brush to get the same look and feel as your standard filters?

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 29 Jun 2011, 07:09 AM
Hi Karanjit Siyan,

Basically, you may get the style of the filtering control, by extracting its template with Blend. Thus you will get all the brushes you require as well as the style of the button. As for closing the filter on clicking the close button, you may take a look at this blog post for a reference.

 

Kind regards,
Maya
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
Tags
GridView
Asked by
Karanjit Siyan
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or