Hello,
We need to add around 4000 summary values to the xamdatagrid and we have changed the summary calculation to lazyloading which is great, but this is not my problem now.
The problem is that using the Add method of the SummaryDefinition object is VERY slow even when I use a key for each summary. Using reflector I can see that the likely reason for this is that you are not using a dictionary to check if the key already exists, you are iterating through the entire collection checking one at a time to see if the key matches. Using a timer I can see this gets progressively worse from zero milliseconds when adding the first summary, but takes around 25 milliseconds by the end of my 4000 items.
When you add this up it takes almost a minute to simply add my summaries even though they aren't actually calculating yet.
Do you have ANY advice on how to avoid this costly Add method or am I doing something wrong.
Regards,Doug Rees
Polo Ralph Lauren.
Hello Doug,
We have shipped out a new service release where your issue is resolved. I'd be glad to find out if you had tested it out and if it had met your requirements.
You can download the Service Releases by logging to our web site and going to Account \Keys & Downloads.
https://es.infragistics.com/my-account/keys-and-downloads/
Just to highlight the issue is really more to do with the grid still doing pre-loading of summaries when you use a group by.
Regards,Doug
I have logged this with development under ID: 159841 and I have also created a support ticket on your behalf: CAS-128601-H1M7K7 and have linked the development issue to it, so that you can get automatically updated, when a Service Release containing the fix is available for download. You can get the new version from our website’s “My IG”, “My Keys & Downloads” tags: https://es.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads
You can also monitor the support ticket’s progress through the “My Support Activity” tag: https://es.infragistics.com/Membership/MySupport.aspx
Even if I just use the Add method and pass in the created SummaryDefinition object (which bypasses the Key check) it seems very slow to add each item.
So any help would be appreciated.