Autoconfig Data table

Hi guys, is there a way how to show the sum footer if the autoconfig at datatable is set to true ? thanks

Hello @manjaaay ,
As a solution, you can catch onStructureLoad event, which fires when the structure of DataTable (columns configuration) is initialized and add the total counter to all the necessary columns:

  on:{
  	onStructureLoad:function(){
    	//remove $cellCss
       this.config.columns.pop();
       //add summColumn for the needed columns
       for(var i = 1; i<this.config.columns.length; i++){
           this.config.columns[i].footer = {content: 'summColumn'};
       }
    }
  }

Please take a look at the snippet:
https://snippet.webix.com/fduxwx9y

thankyou anna. godbless.
I was trying so hard how to sum the footer if the data was coming from DB. (autoconfigure : true)

your solution is perfect for my address-problem. and for those who are looking for sum footer if auto config, this is the answer