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

Footer total in Batch Edit Mode

3 Answers 153 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ramey
Top achievements
Rank 1
Ramey asked on 24 Feb 2016, 05:50 PM

Hello,  I was wondering is there a current way that I can implement Client-side calculations in a Grid Footer while but having the Grid set to Batch Edit Mode?  I saw an example on implementing this using a template column as well as set the value of a totals column based on two separate columns calculations but I was wondering about setting the footer to a total.

Thanks,

Ramey

3 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 26 Feb 2016, 02:02 PM
Hi Ramey,

Please examine the following article that illustrates similar behavior.


You can use the same approach to iterate through the cells of a given column and perform the necessary calculations. Then, you can get reference to the footer in that column and update its contents.

Regards,
Viktor Tachev
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Ramey
Top achievements
Rank 1
answered on 26 Feb 2016, 02:38 PM

Viktor,

Would this approach work with just a GridBoundColumn?  I can't use a template column for this field because it would mess up the way the batch editing is working with the batchExtentionsManager.js.  

0
Viktor Tachev
Telerik team
answered on 02 Mar 2016, 10:05 AM
Hi Ramey,

The approach would work for GridBoundColumns and GridTemplateColumns. One method you can use to update the footer is to iterate through all cells and calculate the result.

Another approach is to use the BatchEditClosed handler as in the  and calculate the result based on the current value in the footer and the value entered by the user.

If you would like the footer to show an aggregate for all items that the RadGrid is bound to you can use the approach described below:



Regards,
Viktor Tachev
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Ramey
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Ramey
Top achievements
Rank 1
Share this question
or