Usage of #stat_total an footer formatting

The xml file below defines the grid I want:



<?xml version="1.0" encoding="utf-8" standalone="yes"?>





AREAGID

Color

Name

Description

Work

Sales



px







8342719467959286662



01

Central

22255.221

276046668.26





1636956358260613131



02

Western

21685.687

274206766.17





6586154515852534506



03

Eastern

22387.586

305880883.95





458804923949041852



05

Inside

6975.649

75869872.16





6481587117843464876



99



0

-19992326.05







In javascript, after the grid is loaded, I call:



shadingGrid.attachFooter("-,Total,-,-,#stat_total,#stat_total", [“text-align:left;”]);



However, the totals in the footer is empty

Please check if you have attached dhtmlxgrid_filter.js file to your page.
If automatically calculated values were added after grid’s initialization, you can force recalculation using the following command:
grid.callEvent(“onGridReconstructed”,[]);