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

Assign Custom Filter values to WPF RadGrid Column

1 Answer 147 Views
GridView
This is a migrated thread and some comments may be shown as answers.
anil indorkar
Top achievements
Rank 1
anil indorkar asked on 09 Mar 2017, 05:27 PM

Hi All

We are using WPF Telerik RadGrid to display real time data. 
We have pre-configured list of values which need to display on the filter of specific column.
We want to display the list of all such values in the filter column and if that values present in the RadGrid datasource or not still we want to display it with checkbox of filter on the column.
Currently, what happens, if we have pre-configured value in the RadGrid data-source then it is available in the filter column.
So the idea here is that, We want to show our own list of filterable values on the specific column.
For example, in the attached screen shot.
We are seeing Country column with Name. This grid is showing only countries what available in the Grid data source.
We want to show all countries in the "Select All" section of filter.
How can we achieve this?

Is is make sense?

Thank you

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 14 Mar 2017, 08:47 AM
Hello,

If I understood your requirements correctly, I believe you can use the DistinctValuesLoading event as suggested in this article.

Please bear in mind that, as stated in the article, this event should be used solely for controlling the number of distinct values that the user will see. You can’t replace the original distinct values with values from NET Type since this would break the data engine.

Do let me know if this would work for you.

Regards,
Dilyan Traykov
Telerik by Progress
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 you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
anil indorkar
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or