This is a migrated thread and some comments may be shown as answers.

Aggregate functions in background?

1 Answer 31 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nick Anderson
Top achievements
Rank 1
Nick Anderson asked on 14 Feb 2012, 09:15 PM
I have a grid that contains 18,000 order objects. When I add an aggregate function to a column to sum the total of the orders, it takes approximately 10 minutes for the operation to be completed. I realize that the aggregate function is going order by order to get the correct amount for the column's property, and as it does this, my objects have to calculate the value that needs to be added to the sum. However, while it does this, my user's screen is frozen and the program is not responding. It does eventually complete the operation, and everything is correct/usable.

My question is, is there a good way to add an aggregate function in the background, so the user doesn't experience a frozen screen? Is there a way to cancel adding the aggregate function if it is taking too long, or does the operation have to be completely executed before anything else can be done?

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 15 Feb 2012, 07:45 AM
Hi,

 For sure 10 minutes for just 180000 is not right. We have demos with a lot more records however everything is working as expected. Can you send us an example where we can replicate your scenario and this problem? 

Kind regards,
Vlad
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
GridView
Asked by
Nick Anderson
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or