I have a grid that loads the data using a parse jsarray.
I have tried to apply a number format but i does not works.
<script type="text/javascript">
feesData = [[ "", "Ponente", 2, 0, 0, 0, 2 ],
[ "", "Prensa", 0, 0, 0, 0, 0 ],
[ "Profesionales", "Socio", 0, 1, 0, 0, 1 ],
[ "Profesionales", "No Socio", 0, 0, 0, 0, 0 ],
[ "Estudiantes", "Socio", 0, 0, 0, 0, 0 ],
[ "Estudiantes", "No Socio", 0, 0, 0, 0, 0 ],
[ "Total", " ", 2, 1, 0, 0, 3 ]];
sColumnsCaption =
"Grupo," +
"Descripción," +
"Pagado," +
"No pagado," +
"Anulado," +
"Invitado," +
"Total";
sColumnsWidth = "*,*,100,100,100,100,100";
sColumnsAlign = "left,left,right,right,right,right,right";
sColumnsType = "ro,ro,ro,ro,ro,ro,ro";
sColumnsSorting = "str_custom,str_custom,int,int,int,int,int";
feesGrid = new dhtmlXGridObject('feesBox');
feesGrid.setImagePath("http://localhost:8888/myCongress_v5/ProjectSources/v5b.201006/Fonts/myCongress/resources/js/dhtmlxGrid/imgs/");
feesGrid.setHeader(sColumnsCaption);
feesGrid.setInitWidths(sColumnsWidth);
feesGrid.setColAlign(sColumnsAlign);
feesGrid.setColTypes(sColumnsType);
feesGrid.setColSorting(sColumnsSorting);
feesGrid.enableMultiselect(true);
feesGrid.setNumberFormat("0.000,00", 2, ",", ".");
feesGrid.init();
feesGrid.setSkin("dhx_skyblue");
feesGrid.parse(feesData,"jsarray");
feesGrid.groupBy(0, ["#title","","#stat_total","#stat_total","#stat_total","#stat_total","#stat_total"]);
feesGrid.collapseAllGroups();
</script>