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

Custom FilterDescriptor

1 Answer 252 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 20 Jun 2017, 07:57 PM

I have been trying to create a custom filter control and I am running into issues.

 

It seems that even when writing a custom filter, the decision of whether a row will be filtered in or out is based on one or more FilterDescriptors, which basically only take in the name of the data field, one of a set of predefined operators, and the value to compare the value in the data field to.

 

Is there any way to define our own logic for whether a row will pass the filter? Any way to write in a function that will take in the row item, and let us create more complex logic than what is given out-of-the-box?

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 23 Jun 2017, 01:25 PM
Hello Mark,

You can achieve your requirement using generic FilterDescriptor and its FilteringExpression function. I hope this helps for your scenario.

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