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

How can I make my ViewModel Leverage the Grid View's Filtering/Sorting?

1 Answer 18 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 27 Aug 2010, 01:35 AM
How can I make my ViewModel, Leverage the Grid View's Filtering/Sorting?

After much painstaking effort, I've managed to write a string based dynamic linq sort EntityQuery method for my DomainContext. But now I'm not to sure how to make the UI controls able to use it?

With the DomainDataSource, it some how manages to pass the filters to the query (Although, on an unrelated topic, there really should be some kind of check to stop it from sorting from non-entity property types, e.g. not by extended entity properties), how can I make my view model able to leverage these filters as well?

How does the DDS (or the GridView) communicate these values? (Namely, the Filter and sort descriptors)

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 30 Aug 2010, 08:39 AM
Hi,

 You can use custom QueryableCollectionView similar to my blog post in your view model to achieve your goal. 

Kind regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Alex
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or