This question is locked. New answers and comments are not allowed.
Hi @all,
I need serverside paging and sorting with the GridView, so I use a QueryableCollectionView and the CollectionChanged Event to reload the data from the server if the user sorts or uses the pager. MVVM is very implortant, so I don't want to have any code in the code behind.
I extedet the GridView, I added a ICommand (as a DependencyProperty) to reload the data. That works really fine.
The only problem I have is, that after sorting and paging the Grid, the new data (coming from the server) are ignored by the QueryableCollectionView.
If I debug the code I see the new data, in the incomming collection, but the data inside the QueryableCollectionView ar never updated.
If I create a new QueryableCollectionView after the new data comes in, the sorting marker and the pager is in the wrong state.
If I call Refresh() on the QueryableCollectionView after the new data comes in, I get an endless loop.
Do you have any solution to solve that problem? many Thanks :-)
I need serverside paging and sorting with the GridView, so I use a QueryableCollectionView and the CollectionChanged Event to reload the data from the server if the user sorts or uses the pager. MVVM is very implortant, so I don't want to have any code in the code behind.
I extedet the GridView, I added a ICommand (as a DependencyProperty) to reload the data. That works really fine.
The only problem I have is, that after sorting and paging the Grid, the new data (coming from the server) are ignored by the QueryableCollectionView.
If I debug the code I see the new data, in the incomming collection, but the data inside the QueryableCollectionView ar never updated.
If I create a new QueryableCollectionView after the new data comes in, the sorting marker and the pager is in the wrong state.
If I call Refresh() on the QueryableCollectionView after the new data comes in, I get an endless loop.
Do you have any solution to solve that problem? many Thanks :-)
