Declined
Last Updated: 05 Mar 2020 15:55 by ADMIN
Euan
Created on: 18 Mar 2014 16:01
Category: Grid
Type: Feature Request
14
Allow grid via datasource to show dynamically updated aggregates
Please add the option for aggregates to be calculated dynamically by the datasource without requiring the grid to carry out a full refresh.

The current workaround from forums is:
save: function (e) {
  // Refresh aggregates when editing
  e.model.one("change", function () {
    gridDataSource.fetch();
  });
},
but as this triggers a refresh of the databound grid, it's current focussed cell is lost.

Example methodology for expected behaviour of solution:
1) A Config Flag on a datasource to recalculate aggregates when a value has been changed (only valid when aggregates are calculated locally) - this stops from requiring the save event.
2) Add support to the grid so that if the aggregates are updated then the grid will only refresh the footer rather than the whole grid. Alternatively the grid could always keep the currently focussed cell between refreshes (assuming the row has not changed, track by model's id field?)

Originally queried in forum: http://www.telerik.com/forums/grid-navigation-reset-to-first-cell-after-editing

Thanks
Euan
1 comment
ADMIN
Angel Petrov
Posted on: 05 Mar 2020 15:55

Hi,

The grid rendering is strongly connected to the changes in the datasource and disconnecting them would have a negative impact. What can be done is to manually modify the aggregated values as shown in this knowledge base.

Regards,
Angel Petrov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.