GridViewColumn: DistinctValuesSearchMode

1 Answer 109 Views
GridView
Kevin
Top achievements
Rank 1
Kevin asked on 15 Mar 2023, 02:24 PM

After reading through the documentation, I was wondering if there was a way to create your own mode for "DistinctValuesSearchMode" other than the four provided.

What I'm trying to create is a mode where users can input separations, such as commas, to filter out more results from the selected column.

Ex:

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 16 Mar 2023, 02:41 PM

Hello Kevin,

The distinct values filtering doesn't provide a mechanism to create a custom search mode. To achieve your requirement, you can extract and modify the ControlTemplate of FilteringControl. You can hide or remove the default TextBox and add your own with custom logic that modifies the FilteredDistinctValues collection of the FilteringViewModel which is the data context of the FilteringControl.

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
GridView
Asked by
Kevin
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or