Using a grid in batch editing mode. Have two aggregated sum in the footer (footerTemplate: "Total: #=sum#).
Is there a way to update the aggregated value when updating the grid (no postbacks)
1 Answer, 1 is accepted
0
Accepted
Petur Subev
Telerik team
answered on 02 Feb 2015, 07:49 AM
Hello Marius,
By default only the current row that you modified is redrawn, the rest of the Grid remains unchanged - this is due to performance and selection state and focus state. You can manually force the Grid to redraw by using its refresh method. You can do this after the save event (use a timeout because save event is actually preventable).
Hi, I understand that you don't update all the grid for performance, scroll, focus... but can you update 2 rows instead of one, and update the footerTemplate row ?
The footertemplate is unusable in edit mode, I think you should also update it.
I don't want to refresh everything, as I will lose the scroll, rownumber, position, etc.
I recommend re-drawing only the Grid footer and the group footers to show the new aggregates without rebinding the entire Grid. For a runnable example please refer to the following article: