Categories | Question details Back To List | ||
data processor Iam using the following code to validate my inserted or updated rows in the grid: function sendData(){ for (var i=0; i<myDataProcessor.updatedRows.length; i++) { var id = myDataProcessor.updatedRows[i]; if (id) { if(mygrid.cells(id,0).getValue()=='') { return alert('Name cannot be empty'); } else { myDataProcessor.sendData(); }}}} If i update or delete or insert more than one row in one instance (say 3 rows) for some reason the dataprocessor is trying to send the data to the server 4 times which leads to the following error in the dhtmlxgrid.js file: this.getRowById(row_id).style.fontWeight = "normal" is null or not a object. Why is this happening?? Answer posted by Support on Jun 26, 2008 01:43 By default dataprocessor sends rows one by one, which mean if 3 rows updated, dataprocessor will run 3 times. ( "send all" behavior can be enabled by dp.setTransactionMode ) Error similar to described one can occur if some of your updates not returned correct response, or returned response with incorrect SID or TID value. The problem is not related to code which you are using for data sending. If problem still occurs - please contact us directly at support@dhtmlx.com - we can send you version of DataProcessor with extended debug output , which can help to resolve problem. |