I am trying to add the values of two collumn each having float values but the numbers after the point are discarded in the grid , it automatically performs the rounding operation.
I am new to DHTMLx, just started learning. Any help would be appriciated.
My code looks likes the::
var mygrid = new dhtmlXGridObject(‘gridbox’);
mygrid.setHeader("Shop,#cspan,#cspan,#cspan,Delivery,#cspan,#cspan");
mygrid.attachHeader("Sales,Book,#cspan,Price,Is available,Date,Sum");
mygrid.attachHeader("#rspan,Title,Copies,#rspan,#rspan,#rspan,#rspan");
mygrid.setNumberFormat("0,000.00","Sum",".",",");
mygrid.setNumberFormat("0,000.00","Price",".",",");
mygrid.setNumberFormat("0,000.00","Copies",".",",");
mygrid.setMathRound(3);
mygrid.setInitWidths("50,150,150,100,70,*,*")
mygrid.enableMultiline(true)
mygrid.setColAlign("right,left,left,right,center,center,center")
mygrid.setColTypes("ro,ed,ed,ed,ch,ed,ro[=c2+c3]");
mygrid.setSkin("dhx_skyblue")
mygrid.init();