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

Update Total Footer for a column when a cell is modified RadGrid in EditMode="Batch"

7 Answers 364 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Raul
Top achievements
Rank 1
Raul asked on 12 Dec 2013, 10:03 PM
Hello,

I have a RadGrid  with columns defined at design time (GridBoundColumn, GridNumericColumn), the grid is configured as EditMode="Batch", when the user clicks on a cell, the cell change to be editable,

I am using the built in feature to display aggreate functions on the grid (Aggregate="Sum"), the problem is that the user modify the value on a cell, but the value on the footer for that column do not be updated,

My expectation is, that each modification on the column, should be reflected on the total,

Could you pelase support me with that?

Thanks in advance,

7 Answers, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 17 Dec 2013, 03:37 PM
Hello Raul,

I am sorry to say but in the current implementation of the grid this is not supported. You can however change the value manually by subscribing to the OnBatchEditCellValueChanged event and using JavaScript change the footer's cell value. Please note that if you click on the Save Changes button the value should get updated automatically.

Regards,
Angel Petrov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Ramey
Top achievements
Rank 1
answered on 24 Feb 2016, 06:03 PM

Angel,

Could you provide an example of this?

Thanks,

Ramey

0
Angel Petrov
Telerik team
answered on 29 Feb 2016, 09:34 AM
Hi Ramey,

Attached you can find a sample web site which illustrates the approach. It is fully runnable just place the Telerik assemblies in the bin folder.

Regards,
Angel Petrov
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 29 Feb 2016, 12:25 PM

Good morning Angel,

Thank you for your response, I opened the website and ran it and it ran properly except for when adding a new record it will give you NaN value.

Ramey

0
Angel Petrov
Telerik team
answered on 02 Mar 2016, 09:49 AM
Hi Ramey,

Indeed your observation are correct. Attached you can find a modified version of the sample in which this problem is not reproducible.

Regards,
Angel Petrov
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
roy
Top achievements
Rank 1
answered on 02 Aug 2016, 05:52 PM

Hi Angel,

your solution is working perfectly for me as well - but:

for some reason it only works if the calculated column is the first column in the grid!

if i add columns before it i get an error since footerCell.children is empty

 

any ideas?

0
roy
Top achievements
Rank 1
answered on 02 Aug 2016, 06:14 PM

so... can ignore the last post.... feel a little slow i missed the page loud function

so nevermind your code works perfectly for me 

Tags
Grid
Asked by
Raul
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Ramey
Top achievements
Rank 1
roy
Top achievements
Rank 1
Share this question
or