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
1052
Displaying Summaries for a grid which ItemsSource id bound to VirtualCollection causes loading all items in ItemsSource
posted

I have a XamGrid for which I have the ItemsSource bound to a VirtualCollection. I need to display summaries for columns but when I try to do that the virtualCollection requests loading of all items. Sends many requests. Is there an workaround for not requesting all items?

Please see the attachement.

Thanks.

XamGridBug.rar
  • 27093
    Verified Answer
    posted

    Hello,

    I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.

    If the above suggestion helped you solve your issue please verify the thread as answered so other users may take better advantage of it.

  • 27093
    posted

    Hello,

     

    I have been looking into your enquiry and when a summary is created, it is expected that all the records of the collection are accessed. I cannot think of another way that an items control can gather the information needed for creating a summary. I have seen though people preferring to create their own summary values inside their view models, or collection classes and simply displaying those precalculated values in the application. This would also require constant updating of those values internally when a data item used in the summary is changed. I should clarify that such an approach would rule out any Infragistics built-in summary functionality. The advantage of such approaches usually is exactly what you are looking for since when calculating the summaries can be performed on adding elements of the collection and the updating can be achieved through the properties’ set methods, this will in turn eliminate the need of accessing all the elements again to generate the summary when needed to be displayed.

     

    Hope this helps. Please let me know if I can clarify this further.