update footer value after datatable filterng

Hello. i`m update footer value onafter loading:

grid.load("/admin/gym/" + id + "/reciept/list").then(function(data){
 data = data.json();
  if (data && data.hasOwnProperty('total_payments')){
  grid.getColumnConfig('admin_name').footer[0].text = data.total_payments;
  grid.refreshColumns();
 }				
});

And idk how i can get data from server for set geting value into footer.
I think about onAfterFiler but he dont give me my data(
Structure of geting data:

{
 data: [//],
 pos: 0,
 total_count: 123,
 total_payments: 123
}

Hello,

You can use onParse event in the datatable configuration.
Here I can provide an example of custom footer with a property from the dataset. With the help of the onParse event is possible to add the property to the config of the datatable and using it in the footer.