This question is locked. New answers and comments are not allowed.
Is it possible to reduce the size of the filter icon on a GridView? We've styled the text on the column header to be smaller but don't want the filter icon to over-power the header area. Ideally we'd like to just shrink it down to a similar size.
Any ideas?
Regards,
SMIMS
Any ideas?
Regards,
SMIMS
4 Answers, 1 is accepted
0
Accepted
Hi Seth,
To shrink the filter icon you can edit the template of the GridViewHeaderCell and from there the template of the DistinctFilterControl which holds the filter icon. Once there you can just apply a ScaleTransform to the icon.
I have prepared a sample which scales the icon to 0.7 to get you started. Feel free to tweak the sample to achieve the desired results.
Greetings,
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.
To shrink the filter icon you can edit the template of the GridViewHeaderCell and from there the template of the DistinctFilterControl which holds the filter icon. Once there you can just apply a ScaleTransform to the icon.
I have prepared a sample which scales the icon to 0.7 to get you started. Feel free to tweak the sample to achieve the desired results.
Greetings,
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
Seth
Top achievements
Rank 1
answered on 18 Feb 2010, 07:49 PM
Thanks Kalin. That's what we were wanting. Looks good.
Regards,
Seth Mims
EnerGov Solutions
Regards,
Seth Mims
EnerGov Solutions
0
Dan Hickman
Top achievements
Rank 1
answered on 11 Aug 2011, 05:05 PM
i cannot this sample to run in the latest greatest version of Telerik. Can someone redo the sample in the latest version and attach?
Thanks,
Dan Hickman
Thanks,
Dan Hickman
0
Hi Dan Hickman,
Vanya Pavlova
the Telerik team
I have attached a recent version of an example, which demonstrates how to modify the DistinctFilterControl within GridViewHeaderCell. Feel free to change it in the way you need.
Vanya Pavlova
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>