Can footer with totals be added to a grid which has been created via html?
<table name="rptGrid" onbeforeinit="doBeforeInit()" class="dhtmlxGrid" gridHeight="350px" gridWidth="990px" >
.
.
.
</table>
and js code
function doBeforeInit(){
rptGrid.setEditable(false)
rptGrid.enableTooltips("false,false,false,false,false,false,false,false,false");
rptGrid.setNumberFormat("0,000.00",5);
rptGrid.setColTypes ("ro,ro,ro,ron,ron,ron,ron,ron,ron,ron,ron,ron,ron,ron,ron,ron,ron");
rptGrid.setColSorting("str,str,str,int,int,int,int,int,int,int,int,int,int,int,int,int");
rptGrid.attachFooter("Total,#cspan,#cspan,#stat_total,#stat_total,#stat_total,#stat_total,#stat_total,#stat_total,#stat_total,",
[ "font-weight:bold;text-align:right;font-style:normal;",
"font-weight:bold;text-align:right;font-style:normal;",
"font-weight:bold;text-align:right;font-style:normal;",
"font-style:normal;",
"font-style:normal;",
"font-style:normal;",
"font-style:normal;",
"font-style:normal;"
]);
}
The word “Total” shows up in the footer. The #stat_total columns are blank.