DataGridExtensions icon indicating copy to clipboard operation
DataGridExtensions copied to clipboard

Paging

Open cilerler opened this issue 8 years ago • 5 comments

Would you please add an example of how to combine filtering and paging?

cilerler avatar Nov 28 '17 00:11 cilerler

If you need paging, you have to do server side filtering.

I think you will have to implement your own ICollectionView and pass the filters to the server.

tom-englert avatar Nov 28 '17 07:11 tom-englert

I have a oData service that I'm trying to consume via datagrid. So if I didn't miss understood you, you are saying that I have to implement middleware in between. Please confirm.

cilerler avatar Nov 28 '17 12:11 cilerler

Yes, however I'm not sure if that will work. E.g. ICollectionView.Filter is a simple Predicate<object>, not an expression, so I have no idea how that could be passed to a server. Maybe the DGX would need to be aware of this scenario, so it can pass an expression instead of a compiled function...

tom-englert avatar Dec 03 '17 15:12 tom-englert

Thanks

cilerler avatar Dec 03 '17 20:12 cilerler

I am late to the game, but I leave it here in case someone comes across this issue. I have added an example for working with an OData Service with a WPF DataGrid at:

  • https://github.com/bytefish/WideWorldImporters

@tom-englert Thanks for this great library!

bytefish avatar Jun 18 '24 01:06 bytefish