How to change default filter opertor for Distinct Values in RadGridView Filtering WPF

1 Answer 16 Views
GridView
Dilipkumar
Top achievements
Rank 2
Dilipkumar asked on 24 Sep 2025, 06:14 AM | edited on 26 Sep 2025, 08:30 AM

Dear Telerik Team,

I'm using Radgridview's Distinct values with my customized list, I'm using ServerSideFiltering and I've got the required outputs in my list but when I choose one of them the default filter operator is "ISEQUALTO" I'm trying to change it as Contains but it doesn't work help me with this

example
in my distinct values Filter:

APPLE
ORANGE
BANANA

in my column:
APPLE
APPLE,BANANA
APPLE,BANANA,ORANGE
BANANA

when I choose APPLE, it should return first 3 options in my column

When i choose APPLE and BANANA it should return all of them

Help me with this.

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 26 Sep 2025, 08:44 AM

Hello Dilipkumar,

As its name implies. the distinct values filtering works only with the IsEqualTo operator in order to show only distinct values. Changing the operator to Contains or another one will result in a different type of filter. There is no mechanism to change the behavior of the distinct filter, neither a direct API to add custom filtering UI.

However, you can still achieve your requirement by creating a custom FilteringControl or extending the default one. This will allow you to add custom UI that lists all of your distinct values. Then, you can implement custom filtering using the contains-based logic.

I've attached a small sample showing how to do this in the context of creating a new filtering control from scratch. I hope this helps.

Regards,
Martin Ivanov
Progress Telerik

Your perspective matters! Join other professionals in the State of Designer-Developer Collaboration 2025: Workflows, Trends and AI survey to share how AI and new workflows are impacting collaboration, and be among the first to see the key findings.
Start the 2025 Survey
Tags
GridView
Asked by
Dilipkumar
Top achievements
Rank 2
Answers by
Martin Ivanov
Telerik team
Share this question
or