Hello!
When I scroll the xamgrid, the CPU usage grows up to 30% on my PC - and it's a Core i5! I tried scrolling a 200-items list without styles and image columns, and surprisingly the CPU usage was just the same.
Could you please provide some hints on optimizing the xamgrid performance, if this is possible? I've read the article about XamDataGrid, but maybe there are some XamGrid-specific features?
Best regards,AntonK
Hi Anton,
How much data are you displaying exactly? I know your showing 200 items but how many columns do you have? 200 items isn't alot of data and the XamGrid should be able to handle it fairly easily out of the box.
Let me know how your data is setup so that I can put together a sample to test this.
Do you still require assistance on this matter?
Hi esam_rabba,
I've put together a sample with 14 columns and 300 rows and I do see the CPU reach 30% in Task Manager. Task Manager isn't really a good way to test performance however so I am going to profile my application to see what exactly is going on. I will let you know the results when I have them.
hi rop ,
you seems forget this subject , pls i need it urgently :)
I have opened a private case for you regarding this XamGrid performance issue. I have also logged this issue with development and linked it to your case.
Your case number is CAS-99374-P8Y9P5. The development issue ID is 120149.
Hi,
Is there any update on this, we are facing same issue.
Thanks
Soudip
Hi Soudip,
The issue was determined to be caused by the CPU intensive nature of measure and arranging a row which would in-turn measure and arrange each cell in that row. Unfortunately there's not much we can do about that since measure and arranging are integral parts of WPF/Silverlight.
A way to reduce the number of measure/arrange calls however is to use deferred scrolling. http://help.infragistics.com/NetAdvantage/WPF/2012.2/CLR4.0/?page=xamGrid_Deferred_Scrolling.html
A micro optimization that might give you a very small boost would be reducing the ControlTemplate of the CellControl. Less elements in the ControlTemplate may result in faster measure and arrange calls.