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

Hiding certain column filter distinct values

1 Answer 126 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 22 Feb 2019, 02:09 PM

Hi

We are splitting a single data set between 2 radgridviews and separating the data using programmatic column filters. If column filtering is enabled, the distinct values will display all the values, even the ones that are being filtered out. so...

Is it possible to remove or control what distinct values the user can see?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 27 Feb 2019, 09:29 AM
Hello Simon,

In order to achieve what you are going for, you can utilize the DistinctValuesLoading event of the RadGridView. In that event, you can set the ItemsSource of the event arguments to the filtered collection of distinct values. You can check out the Display All Distinct Values article in our documentation for an example of how this event can be handled.

Hope this helps.

Regards,
Vladimir Stoyanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Simon
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Share this question
or