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

Setting filter operator list from inside custom column/descriptor

1 Answer 56 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 23 Jun 2017, 03:02 PM

I would like to be able to modify the list of operators in my field filter. I know I can do it in the way shown here:

 

http://docs.telerik.com/devtools/wpf/controls/radgridview/filtering/how-to/howto-change-the-default-selected-filter-operator

 

But if I am creating my own custom GridViewDataColumn or FilterDescriptor class, is it possible to do it from inside one of those two classes, so I don't have to repeat the same event handlers for every RadGridView that I'm using them in?

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 28 Jun 2017, 03:03 PM
Hello Mark,

In order to achieve your requirement you can use couple of approaches.
  • You can create a UserControl with a single RadGridView with it and define the event handlers there. This way you can re-use the UserControl when necessary.
  • Or you can create a custom control that derives from GridView and override its OnFilterOperatorsLoading() method.

Regards,
Martin Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Mark
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or