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

[Solved] Filtering Control Style Issue

1 Answer 90 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.
Paul Hess
Top achievements
Rank 1
Paul Hess asked on 24 Aug 2011, 08:44 PM
I'm attempting to utilize some of my custom styles for various controls within the Filtering Control.

I've successfully added the desired styles to the Select All Checkbox, ListBox Checkbox, ComboBoxes, and Close/Clear/Filter Buttons. This was all relatively straightforward because the controls are available within the Filtering Control ControlTemplate. My issue comes when I try to apply styles to the contextual controls found in the two ContentControls titled "PART_Filter1ContentControl" and "PART_Filter2ContentControl". The controls surfaced within these two ContentControls are either a text box and toggle button or a date picker.

How would you best suggest adding my custom styles to these controls since I cannot access them directly through the FilteringControl ControlTemplate?

It would appear that even my implicit styles (those without x:Keys) fail to apply to the desired controls.

Thank you,
Paul

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 25 Aug 2011, 09:15 AM
Hello Paul Hess,

 

You may subscribe to the FieldFilterEditorCreated event of RadGridView and if the column is the desired one cast it to the editor you need (RadDateTimePicker, RadMaskedTextBox) ... and configure its appearance from there in the way you need. 



Best wishes,
Vanya Pavlova
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

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