Hello.
I want to use server-side paging.
I have a XamGrid bounded on VirtualCollection<>.
I used ItemDataRequested event. When it fires, I get data from RIA service async.
As a parameters sent to service i use
(int startIndex, int itemsCount, SortDescriptionCollection sortDescriptions)
So, sorting works supposed.
But when grouping in the XamGrid I want to first loaded a number of groups (eg 5) and when opening group, entities, belonging that group should load.
There is any solution?
Ask if any question plz.
BR
Alexey Lukyanov
Hi Alexey,
Unfortunately, the behavior you're looking for isn't possible. We don't perform the grouping ourselves, we mainly rely on linq to perform the operation. And in the case of a VC, which is a CollectionView, we rely on it's implementation of grouping, which always returns the children rows.
-SteveZ
Understood.
Steve, maybe there is a solution without VC?
Сould there another implementation of server-side "paging" or another way to reduce data recieved from server to client?
I'm not very familiar with this subject.