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

FilterDescriptors to Expression

1 Answer 101 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Oscar
Top achievements
Rank 1
Oscar asked on 07 Apr 2014, 01:23 PM
I'm using ProLinq (http://prolinq.codeplex.com/) to expose IQueryable directly to clients of my service.

I'm binding this Queryable to my RadfGridView but it's not working how i expected: The IQueryable that the service return is only for one use, when grid need to refresh (by a filter change for example) the grid must be obtain other IQueryable from the service.

I'm trying to make this to work in several ways but i don't success for now :(
- I'm overload Filtering and Sorting events to change grid filter every time
- I'm try to convert the FilterDescriptor to System.Linq.Expression to get new IQueryable from service and apply the expression on it, but i don't know
- I'm trying use VirtualQueryableCollectionView but when i filter the grid the service is not called.

Any idea how i can complete this behavior?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Oscar
Top achievements
Rank 1
answered on 07 Apr 2014, 01:34 PM
It's solved :O

I had forgotten add the QueryableBehavior to service :(

Sorry for inconvenience.
Tags
GridView
Asked by
Oscar
Top achievements
Rank 1
Answers by
Oscar
Top achievements
Rank 1
Share this question
or