Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
605
XamGrid Grouping & VirtualCollection
posted

 

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

 

 

  • 40030
    Offline posted

    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