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

Search returns no results when GridView binded to collection of ExpandoObjects

3 Answers 80 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 10 Mar 2017, 09:35 AM
Hi,

I'm binding RadGridView ItemsSource to ObservableCollection<ExpandoObject> because I need to display the data without knowledge of its type and schema. Values are presented correctly in grid, but when I'm typing anything in search - no results are presented. Here is sample solution illustrating this problem, so that you can help me solve this problem.

3 Answers, 1 is accepted

Sort by
0
Stefan Nenchev
Telerik team
answered on 14 Mar 2017, 10:45 AM
Hello Jan,

Thank you for the sample project provided. Unfortunately, the behavior is expected with the current implementation of the RadGridView's  "Search As You Type" functionality. We have the requirement logged as a feature request in our Ideas & Feedback Portal - GridView: Implement SearchAsYouType Support for Dynamic Objects. I have added your case and increased the priority of the feature request, however, I encourage you to vote for the item as well. 

Regards,
Stefan Nenchev
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.
0
Jan
Top achievements
Rank 1
answered on 14 Mar 2017, 10:54 AM
I'm not permitted to view this site.
So, you're saying, that for now I need to have defined string type instead of ExpandoObject to be able to search on those data?
0
Accepted
Stefan Nenchev
Telerik team
answered on 14 Mar 2017, 12:52 PM
Hello Jan,

The link is fixed and should point to the correct item now. Currently, the Search Panel would work over a collection of plain CLR objects. The functionality can be used for different types of properties, though(Int, DateTime, etc.). However, we will definitely consider adding support for dynamic objects but I cannot provide you with a timeframe at this point.

Regards,
Stefan Nenchev
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
Jan
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
Jan
Top achievements
Rank 1
Share this question
or