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

FilterControl Styling

1 Answer 147 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 06 Jul 2011, 12:41 PM
Hi

I have a global style set within a resource dictionary for all telerik:RadGridView's within my solution. I'm using the telerik transparent theme as my base, but have restyled a number of elements (row highlights, fitler drop down icon, header row etc), all of which I have applied to all grids without a problem.

I would like to do the same with the FilterControl - in the first instance, I would simply like to change the theme of the the FilterControl and all it's elements to the telerik Office_BlackTheme.

I have tried setting:

<Style TargetType="{x:Type telerik:FilteringControl}>
        <Setter Property="telerik:StyleManager.Theme"    Value="Office_BlackTheme"/>
<Style>

But this had no effect at all.

I have accessed the FilterConrol Template using Blend and ensured that all elements within the template are using the Office_BlackTheme (although I didn't see a DatePicker & Calendar in there?) - and I have successfully managed to get this to apply to all grids within my solution.
 
However, I end up with the same filter options for all columns no matter what the data type - i.e. Date/Time fields have no DatePicker to filter by date -  and also none of the filter options that are available are populated - I just have an empty listbox and empty combo-boxes.

NB: All our grids use AutoGenerateColumns and contain a number of different types of data: text, dates, times, numbers.

Can you please help - all I really want to do is have a FilterControl using the Office_BlackTheme within my Grid which uses a modified TransparentTheme.

Thanks

Simon

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 11 Jul 2011, 02:31 PM
Hi Simon,

 
I have already replied in the previos support ticket. For those who might be interested in this issue I am attaching sample application that demonstrates how to achieve the desired result. 


Regards,
Vanya Pavlova
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
GridView
Asked by
Simon
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or