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

Close the Filter Box upon "Filter" click

4 Answers 79 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hakki
Top achievements
Rank 1
Hakki asked on 09 Apr 2013, 10:18 AM
Hello,

When you filter a column, you can click away from the filter box and the box will disappear. However some of the users are not used to that and they always click "Filter" (in the box, next to 'clear filter' button), which does not close the Filter Box.

I was specifically wondering how I can make it so clicking the Filter button will close the Filter Box.

And in general was wondering how I access the event handler for the Filter click (or anything in the filter box).

Thanks for any help.

4 Answers, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 09 Apr 2013, 10:38 AM
Hello,

You can check this forum thread where the same question has been discussed. 

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Hakki
Top achievements
Rank 1
answered on 09 Apr 2013, 10:47 AM
Hello Didie,

That solution looks great. My bad for not searching.

Thanks.
0
Hakki
Top achievements
Rank 1
answered on 15 Apr 2013, 03:34 PM
Sorry didn't think I should bump the year old thread. Just two quick questions:

1) How do I make this the default behaviour?
(rather tedious going around every grid and adding them to each column and also this is what the users want so I have no use for the actual default behaviour anymore)

2) How do I apply a theme to it?
(I added the 'telerik:StyleManager.Theme="Expression_Dark"' to the XAML tag of the behaviour but it still comes up as default)

Thanks a lot.
0
Dimitrina
Telerik team
answered on 17 Apr 2013, 02:28 PM
Hello,

As to your questions:
1)  The FilteringControl can be assigned per column, not per RadGridView.
2)  By default the FilteringControl will have the same Theme applied as the RadGridView. Do you want to set the "Expression_Dark" Theme only for it, or do you set for the parent RadGridView as well? Would it be possible for you to send us a demo project showing the problem?

Regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Hakki
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Hakki
Top achievements
Rank 1
Share this question
or