Categories | Question details Back To List | ||
undefined data names in dataprocessor update request after reload (using configuration from xml) Hi, I am trying to use the dataprocessor on a grid with columns defined in the head of the xml file. I have enabled data names (enableDataNames). At first update requests are fine: URL:php/update.php? Data:gr_id=1&title=A%20Time%20to%20Kill%20-test&author=John%20Grisham but after reloading the grid rows (mygrid.clearAll();mygrid.loadXML('grid.xml')) the data names become undefined: URL:php/update.php? Data:gr_id=1&undefined=A%20Time%20to%20Kill%20-%20test&undefined=John%20Grisham Can you please tell me what is wrong? Here is my grid xml and html page: grid.xml: <?xml version="1.0" encoding="UTF-8"?> <rows> <head> <column id="title" width="150" type="ed" sort="str">Book Title</column> <column id="author" width="100" type="ed" sort="str">Author</column> <settings> <colwidth>px</colwidth> </settings> </head> <row id="1"> <cell>A Time to Kill</cell> <cell>John Grisham</cell> </row> <row id="2"> <cell>Blood and Smoke</cell> <cell>Stephen King</cell> </row> <row id="3"> <cell>The Rainmaker</cell> <cell>John Grisham</cell> </row> </rows> html: <html> <body> <link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxgrid.css"> <script src="../../codebase/dhtmlxcommon.js"></script> <script src="../../codebase/dhtmlxgrid.js"></script> <script src="../../codebase/dhtmlxgridcell.js"></script> <script src="../../../dhtmlxDataProcessor/codebase/dhtmlxdataprocessor.js"></script> <div id="gridbox" width="100%" height="250px"></div> <button onclick="mygrid.clearAll();mygrid.loadXML('grid.xml')">Refresh</button> <br> <script> mygrid = new dhtmlXGridObject('gridbox'); mygrid.setImagePath("../../codebase/imgs/"); mygrid.loadXML("grid.xml"); myDataProcessor = new dataProcessor("php/update.php") myDataProcessor.enableDataNames(true); myDataProcessor.init(mygrid); myDataProcessor.enableDebug(true); </script> </body> </html> Answer posted by Support on Sep 01, 2008 02:00 This is bug in current version of dhtmlxgrid. The problem already fixed in dev. code, so if you need a fix ASAP - please contact us directly at support@dhtmlx.com and provide your ref. number. |