Hi,
I have a XamDataGrid which has around 20 columns on display at any one time.
Out of those 20 columns, roughly 6 columns are styled using DataTriggers.
Some of these styles have 3 - 4 diffferent data triggers on them, including multidata triggers.
I am seeing the scrolling performance deteriate when these triggers are used. If I remove these styles the performance increases again.
Can anyone help me understand:
- How much of an impact these triggers have on performance
- Will these triggers get fired when a cell is brought into view
- Is there an alternative to using data triggers
Thanks for the help,
J
Hello,
You are right that everytime a Cell is brought into view the triggers will apply, becasue they apply when the elemnt they are set to is initialized.
Hey,
Thanks for the reply.
Although we are virtualizing the Records and Cells, correct me if I'm wrong, but the triggers are going to be "checked" each time a cell is brought into view?
So if we have a lot of triggers, the UI thread is going to have a lot of work to do when bringing a cell/record into view?
I get the feeling this is where we are hitting the performance issues. I have looked into those blog posts previously and tried to utilise them as much as possible.
Thanks,
Thank you for your post. I have been looking into it and I can say that since the XamDataGrid has Record and Cell Virtualization using of Triggers is the best option for you. If you want to increase the performance of your XamDataGrid here you can read how to do so:
http://ko.infragistics.com/community/blogs/kiril_matev/archive/2012/07/23/xamdatagrid-performance-optimization-using-simplified-templates-and-forced-cell-virtualization.aspx
and
http://ko.infragistics.com/community/blogs/kiril_matev/archive/2010/10/26/optimizing-xamdatagrid-performance.aspx
Hope this helps you.