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

Overridding Telerik.Windows.Controls.GridView.FilteringControl's behavior

2 Answers 108 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rashad Rivera
Top achievements
Rank 1
Rashad Rivera asked on 29 Mar 2011, 05:20 PM
Hello All,

   I like the way the default control in RadGridView works - AKA Telerik.Windows.Controls.GridView.FilteringControl.  However, I want to change one behavior; the application of the filter.  Basicly, I want to intercept the filter specified by the user and interpret it myself.  This way I can customize the behavior and keep the look and feel.  Can anyone advise me how to do this?

- Rashad Rivera

2 Answers, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 31 Mar 2011, 08:40 AM
Hello Rashad Rivera,

I am not sure what do you mean by interpretting the filtering yourself, but you can attach to the Filtering event and read the filtering information. But if you cancel this event -- you will lose the UI.

The cleaner approach would be to develop your own custom filtering control where you will have absolute power over what is going on and how is filtering performed.

Regards,
Ross
the Telerik team
0
Rashad Rivera
Top achievements
Rank 1
answered on 30 Apr 2011, 05:38 AM
It would be much better to inherit from your control because yours has a better starting point.  Unless this control is sealed, in which I have no choice but to write my own.
Tags
GridView
Asked by
Rashad Rivera
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Rashad Rivera
Top achievements
Rank 1
Share this question
or