Display column total in lazy loaded Vaadin grid footer with Polymer 3

I have a Vaadin grid in UI, data populated with polymer 3.0.
It’s a lazy loading grid with dynamic columns.

The challenge which I am facing is to display total( sum of values for columns having numeric data) in footer of the grid.

If you have any solution or suggestion for same, please share.

Any help would be appreciated.

Maybe you can achieve this by overriding the footerRenderer function for the <vaadin-grid-column> when you have the data available, i.e. in the end of the dataProvider function, when you are calling callback to set the data for the grid.