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

Aggregate updated client side

1 Answer 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dario Zanelli
Top achievements
Rank 1
Dario Zanelli asked on 09 Jul 2010, 08:44 AM
Hi all,

I have a Radgrid with some values and an aggregate function that calculates the average.
The values in the grid are editable clientside; at the end of the operation there is a button to confirm the data and save them to the server.
I would like to know whether there is the possibility to calculate the values of the aggregate function (Average) before saving the data to the server.

Thanks in advance for the answer.

Kind regards,

Dario Zanelli

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 12 Jul 2010, 01:01 PM
Hello Dario,

As far as I understand you need to calculated the aggregate value client-side and then make a round-trip to the server to save the data: I am afraid this scenario is possible only if you do not use paging since only in that case the column data will be availabe on the client for all rows. This will allows you to traverse the rows through dom operations, get hold of the column cells and calculated the corresponding average value.

Regards,
Tsvetoslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Dario Zanelli
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or