I've been using Telerik GridView for a while now, but in the above version I've started to have some problems with AggregateFunctions.
I have a Grid with a Sum function, but when I change it's data source, the sum value is not updated with the new values. The strange part is that, if I invalidated the column with the sum (scrolling it out of the screen, for example), then the value is updated.
Am I doing something wrong? Has anyone else experienced this behavior?
8 Answers, 1 is accepted
Please check the Aggregates are not updated troubleshooting article. There are 4 different possible approaches for overcoming this problem.
Regards,
Yoan
Telerik by Progress
Hi Yoan,
Has something changed from the previous version? When I build my project using 2016 I get the "normal" behavior, it's just with 2017 that the problem occcurs.
Besides that, I am binding the grid to a ObservableCollection that is set by Entity Framework (virtual property), and I use MVVM. Is there an event that I can subscribe to, so I can call Rebind?
Changes were made in the older version (2016) because there was a bug related to the AggregateFunctions. However, we are not aware of AggregateFunction issues with our current version. Can you try using our latest official version - 2017.2.503? If this does not help, may I ask you to provide a sample project which demonstrates the issue? In this way, I will be able to debug it and will try to provide a possible solution.
I'm looking forward to hearing from you.
Regards,
Yoan
Telerik by Progress
Hi Yoan,
I've tried updating the controls but with no success.
I am attaching a sample project so you can reproduce the behavior. To test you should run the software and click on any item, then go to Tab 1, when you go back and select another item the sum on tab 1 is not updated.
As the forum won't allow me to upload rar files, I've renamed the extension to jpg.
Thanks in advance
Thank you for the update.
We are researching the case and the cause for this behavior, but we will need a little more time for this. We will update you as soon as possible. Hopefully, this will be no longer than tomorrow.
Thank you in advance for understanding.
Regards,
Stefan X1
Progress Telerik
Thank you for your patience.
The reported discrepancy of the AggregateFunctions between the two versions is due to a memory leak issue that was fixed. However, the workaround for it is quite straightforward. You can adopt the approach of using the RadTabControl instead and set its IsContentPreserved property to True. Would such an approach be feasible for you?
Regards,
Stefan X1
Progress Telerik
Hi Stephan,
Thank you for the answer.
Is this going to be fixed in a future release or this workaround is permanent?
We are currently in the process of investigating whether a fix for this issue can be provided, as we need to ensure that the previously fixed memory leak will not be affected in any manner. So, I have logged this as a bug report so you can track any status changes of the relevant item in the Feedback Portal: link. I have also updated your Telerik points as a gratitude for your cooperation.
Best Regards,
Stefan X1
Progress Telerik