Categories | Question details Back To List | ||
Grid serialize with colspan Hi, i have the Problem, that i cant serialize data in Pro-Version (1.6) from a grid with enableColSpan(true); Here is the sample: HTML-Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> <link rel="STYLESHEET" type="text/css" href="css/dhtmlxGrid/dhtmlxgrid.css"> <link rel='STYLESHEET' type='text/css' href='css/common/style.css'> <script type="text/javascript" src="js/dhtmlxGrid/dhtmlxcommon.js"></script> <script type="text/javascript" src="js/dhtmlxGrid/dhtmlxgrid.js"></script> <script type="text/javascript" src="js/dhtmlxGrid/dhtmlxgridcell.js"></script> <script language="JavaScript" type="text/javascript"> function serializeGrid(){ mygrid.setSerializationLevel(true,false,true,false,false,false); var myXmlStr = mygrid.serialize() document.getElementById("mytextarea").value = myXmlStr; } </script> </head> <body> <table width="200" class="table" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <div id="gridbox" style="width:100%;height:200px"></div> </td> </tr> <tr> <td> <a href="#" onclick="serializeGrid()">Export</a> </td> </tr> </table><br><br> <textarea name="mytextarea" id="mytextarea" rows="20" cols="80"></textarea> <script type="text/javascript"> mygrid = new dhtmlXGridObject('gridbox'); mygrid.enableColSpan(true); mygrid.init(); mygrid.loadXML("test.xml"); </script> </body> </html> XML-Code: <?xml version="1.0" encoding="UTF-8"?> <rows> <head> <column width="100" type="ed" align="left" color="white" sort="na">1</column> <column width="100" type="ed" align="left" color="white" sort="na">2</column> <settings> <colwidth>px</colwidth> </settings> </head> <row id="row_1" class="knot"> <cell colspan="2">1</cell> </row> </rows> If "mygrid.enableColSpan(true);" is commentet out, then everythig is fine (except the design). If colSpan is enabled, then there is a bug in JS-Code of dhtmlxgrid.js in line 344: "cvx is not defined". I hope it will be fixed as soon as possible, because i need this function. Regards, Marcel Answer posted by Support on Aug 26, 2008 06:29 Updated js files, which resolves mentioned issue, sent by email. Answer posted by Support on Sep 03, 2008 03:44 The fix, not included in public version yet ( it will be released as part of oncoming update ). Please use js file which was sent by email - it is the latest version with all fixes up to date. |