Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Edgard on Jul 08, 2009 18:24
open dhtmlx forum
Decimals round in footer

Hi,

I'm trying use attachFooter and the function's stat_total don't round decimals.

I use this settings:
grid.setNumberFormat("0,000.00",1,",",".");

The values in cell's and totals in group is all right.
But in footer the decimals wrong.
Example:

Footer = 1.500,342
GroupBy = 1.500,34


Thanks.
Answer posted by dhxSupport on Jul 09, 2009 01:01
setNumberFormat() method has impact only on the grid's cells, not on the grid's header and footer. If you need change number format used at header|footer shortcuts you can implement custom. Please see more information here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_stat_counters.html#grid_art_custstat
http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_content_in_header.htm#grid_ccingrid