#stat_total not display value when upgrade to version 4.11

i upgraded from version 4.0.3 to 4.11
and all grid with attachfooter #stat_total not display value
I did not change the code, just replace dhtmlx.js and .css

Is there any change in attachfooter in ver 4.11 ?




Unfortunately the issue cannot be reproduced locally.
The following sample works well for me in 4.1.1 version of dhtmlxgrid:
dhtmlx.com/docs/products/dhtmlxG … r_num.html

If the problem still occurs for you please, provide with a complete demo, where the problem can be reconstructed locally.
Here you can find a tutorial about creating a complete demo;
docs.dhtmlx.com/auxiliary_docs__ … pport.html

I already tried to create a simple demo dan this issue not happens. But in my real code this is still problem dan now i’m back to ver 4.0.3.
This is my code

mygrid = new dhtmlXGridObject(‘gridbox’);
mygrid.setSkin(sessionStorage.getItem(‘myskin’));
mygrid.setImagePath("…/…/lib/common/imgs/");
mygrid.setHeader(",#cspan,#,Acc#,Project,Dept,Account Name,Debit,Credit,Description");
mygrid.setInitWidths(“35,35,35,110,110,110,250,140,140,500”);
mygrid.setColAlign(“center,center,center,left,left,left,left,right,right,left”);
mygrid.i18n.decimal_separator = sessionStorage.getItem(‘dSep’);
mygrid.i18n.group_separator = sessionStorage.getItem(‘pSep’);
mygrid.setColTypes(“img,img,ro,ro,ro,ro,ro,edn,edn,ro”);
mygrid.setColSorting(“na,na,int,str,str,str,str,int,int,str”);
mygrid.enableColumnMove(false);
mygrid.enableRowsHover(true,‘grid_hover’);
mygrid.attachEvent(‘onRowDblClicked’, function(rId,cInd) { doDetail( rId, $(’#becreff’).val() ); });
mygrid.attachEvent(“onXLE”, function(grid_obj){
ntotaldb = 0;
ntotalcr = 0;
mygrid.forEachRow(function(rId){
ntotaldb = ntotaldb + Number(mygrid.cells(rId,7).getValue());
ntotalcr = ntotalcr + Number(mygrid.cells(rId,8).getValue());
mygrid.setCellTextStyle(rId, 7, ‘color:red’);
mygrid.setCellTextStyle(rId, 8, ‘color:red’);
});

  mygrid.detachHeader(0);
  mygrid.detachFooter(0);
  mygrid.attachHeader(",#cspan,#,Acc#,Project,Dept,Account Name,Debit,Credit,Description");
  mygrid.attachFooter("<input type='button' id='btninsert' name='btninsert' onclick='doDetailInsert();' value='+ New Item'>,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,#stat_total,#stat_total,",
                       ["height: 35px;",,,,,,,"text-align: right; color: red","text-align: right; color: red"]);

  mygrid.selectRow(0);

});
mygrid.attachEvent(“onEditCell”, function(stage,rId,cInd,nValue,oValue){
return false;
});
mygrid.setNumberFormat(sessionStorage.getItem(‘NumFmt’),7);
mygrid.setNumberFormat(sessionStorage.getItem(‘NumFmt’),8);
mygrid.setColumnHidden(4, (sessionStorage.getItem(‘8107’)!=‘YES’) );
mygrid.setColumnHidden(5, (sessionStorage.getItem(‘8142’)!=‘YES’) );
mygrid.init();
mygrid.load("./journal_detail_refresh.php", function() {
mygrid.loadOrderFromCookie();
mygrid.loadSortingFromCookie();
mygrid.loadSizeFromCookie();
mygrid.enableAutoSizeSaving(’’,expires);
mygrid.enableSortingSaving(’’,expires);
mygrid.enableOrderSaving(’’,expires);
} );

I am pretty sure there is a problem in attachFooter in this version.
I have a lots of pages using attachfooter and all pages not display total value.
Thanks

Unfortunately the issue still cannot be reproduced locally.
If the problem still occurs for you please, open the ticket at support.dhtmlx.com and provide with a working complete demo, where the issue can be reconstructed.
Here you can find a tutorial about creating a complete demo:
docs.dhtmlx.com/auxiliary_docs__ … pport.html