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

how can i create style for filter box ?

6 Answers 68 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ravi
Top achievements
Rank 1
Ravi asked on 27 Jun 2012, 08:03 AM

Hi,

i have a requirement to change the style of filtercontrol which will display on RadGridView's column header.

Can you please guide me to create style for filter control.
please check the attached image for better understand.


Thanks in advance.

6 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 27 Jun 2012, 08:19 AM
Hi Srinivas,

Here is a detailed article about the template structure of FilteringControl and all the other significant visual elements of RadGridView. In order to customize its template, you should extract its default template with expression Blend, apply your changes and propagate the new template through a style. You can use GridViewBoundColumnBase's FilteringControlStyle property to set the style to a particular column. On the other hand, if you are using our new implicit-styling mechanism, you can find the template in the merged XAML resource dictionaries and apply the changes there, without the need of any additional effort.

All the best,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Ravi
Top achievements
Rank 1
answered on 27 Jun 2012, 09:17 AM
Hi Ivan Ivanov ,
Thanks for reply,..

I have looked in the structure but no where i can see the Filter control, can you please tell me the exact location or in which style this template is reside ??
I have looked at "FilteringControl" in the artticle which you have mentioned a link in first reply, but i am not able to see that structure in my project, can you give me details ?

Thanks once again.
0
Ivan Ivanov
Telerik team
answered on 27 Jun 2012, 11:59 AM
Hello Srinivas,

Would you please confirm whether you are using the old StyleManager theming mechanism, or the alternative implicit-styles-based one, so that we would be able to prepare a sample project for you?

All the best,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Ravi
Top achievements
Rank 1
answered on 28 Jun 2012, 04:46 AM
Hi Ivan Ivanov,

Thanks for your precious help.
we are using implicit-styles-based one.

Thanks again,
0
Ivan Ivanov
Telerik team
answered on 03 Jul 2012, 05:37 AM
Hello Srinivas,

Please excuse me for the delayed answer. For your convenience, I have marked the XAML parts that you need to change with comment lines. Please, refer to the attached project.

Regards,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Ravi
Top achievements
Rank 1
answered on 03 Jul 2012, 05:48 AM
Hi Ivan Ivanov ,

Thanks for precious reply and for spending your time for me.
I will check this.

Regards
Srinivas
Tags
GridView
Asked by
Ravi
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Ravi
Top achievements
Rank 1
Share this question
or