Categories | Question details Back To List | ||
Unable to perform mathematical calculations I used the free version V2.0. dhtmlxgrid_math.js is downloaded on the Internet. the page does not show,the following errors: like do not support this property or method and tips:"Error type: Configuration;Description:Incorrect cell type:math" Code is as follows: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Math calculations</title> <link rel="STYLESHEET" type="text/css" href="js/grid/skin/dhtmlxgrid.css"> <script src="js/grid/src/dhtmlxcommon.js"></script> <script src="js/grid/src/dhtmlxgrid.js"></script> <script src="js/grid/src/dhtmlxgridcell.js"></script> <script src="js/grid/src/dhtmlxgrid_math.js"></script> </head> <body> <div id="gridbox" style="width:535px;height:250px;background-color: white;"></div> <br> <script> mygrid=new dhtmlXGridObject('gridbox'); mygrid.setImagePath("../../codebase/imgs/"); mygrid.setHeader("Book Title,Author,Price,Quantity,Total"); mygrid.setInitWidths("150,120,80,80,80"); mygrid.setColAlign("left,left,right,right,right"); mygrid.setColTypes("ed,ed,price,ed,ed[=c2*c3]"); mygrid.setColSorting("str,str,int,int,int"); mygrid.setColumnColor("#d5f1ff,#d5f1ff"); mygrid.setMathRound(2); mygrid.enableMathEditing(true); mygrid.init(); mygrid.loadXML("grid_math.xml"); </script> </body> </html> Answer posted by dhxSupport on Jan 09, 2009 06:22 Please make sure that you have specify the rigtht way to the dhtmlxgrid_math.js file and both dhtmlxgrid.js and dhtmlxgrid_math.js are from the same version. ( new version of grid uses different approach to math hooks, so it will not work with old extension ) Answer posted on Feb 25, 2009 17:03 Answer posted by Support on Feb 26, 2009 01:31 Also, beware that dhtmxgrid.js and dhtmlxgrid_math.js need to be used from same version (there is significant difference in math handling between grid 1.5 and grid 1.6+ ) |