math calculations are not working in serialization of grid

Hello Team,

I am upgrading DHTMLX library from V25_pro_91111 to v30_110713.

Grid is not serializing properly. PFA of V25 and V30.

The mathematical calculations are not being performed in V30.

Please help.

Here is grid initialization:

var colSalesRep=0;
var colSalesArea=1;
var colSFDCOppID=2;
var colBDM=3;
var colTDM=4;
var colIS=5;
var colRevAllocation=6;
var colUpliftPct=7;
var colCommQuota=8;
var colLicenseRevenue=9;

var serverErr=“”;
var ind = 3;
var totalRevenueUSDollars = 0;Desktop.zip (1.28 KB)

mygrid = new dhtmlXGridObject(‘gridbox’);
mygrid.setHeader(“Sales Rep,Sales Area,SFDC Opportunity ID,BDM %,TDM %,I&S %,Total Rev Allocation,% Uplift,Comm Quota %,License Revenue”);

mygrid.setInitWidths(“200,260,100,65,65,65,74,65,130,0”);
mygrid.setColAlign(“left,left,left,right,right,right,right,right,right,right”)
mygrid.setColTypes(“combo,combo,ed,edn,edn,edn,edn[=(c3+c4+c5)],edn,edn[=(c6+33.00.25c7/100.)],ron”);
mygrid.setColSorting(“str,str,str,str,str,str,str,str,str,str”);

mygrid.enableTooltips(“true,true,false,false,false,false,false,false,false,false”);
mygrid.setImagePath(dhtmlxGrid_greenfoldersPath);
mygrid.setNumberFormat(“0.000”,colBDM);
mygrid.setNumberFormat(“0.000”,colTDM);
mygrid.setNumberFormat(“0.000”,colIS);
mygrid.setNumberFormat(“0.000”,colRevAllocation);
mygrid.setNumberFormat(“0.000”,colUpliftPct);
mygrid.setNumberFormat(“0.000”,colCommQuota);
mygrid.setMathRound(3);
mygrid.setColumnHidden(colLicenseRevenue, true);
mygrid.setSkin(“dhx_skyblue”);
mygrid.init();
mygrid.enableSmartRendering(true);

mygrid.enableMathSerialization(true);
mygrid.setSerializationLevel(false,false,true,false,false,true);
var serializedDataField = document.getElementById(“frmCttf:serializedData”);
serializedDataField.value = mygrid.serialize();

Unfortunately the issue cannot be reconstructed locally.
in your serialized xml (grid v3) math formulas serialized correctly.
Couldn’t you clarify your issue.

have to looked into the attached files?

Hello Sematik

Have you looked into the attached text files?

The math calculations are visible on JSP page but not reflected in XML generated by GRID.
PFA snapshot of JSP page.

Please help.

-Mohit


Please, clarify your issue.
In the “v3.txt” math formulas serialized correctly.