Resetting the dataProcessor


I am implementing an editable grid backed by a dataProcessor with a save and a cancel button. The save button calls dataProcessor.sendData and the cancel button calls grid.clearAll();grid.loadXML(…). The problem is that clearing and reloading the grid

does not seem to reset the dataprocessor. If a change a row, then reload and then saves, the changed row with unchanged values is sent to the server, which is shouldn’t. Calling dataprocessor.init(grid) again does not help.

How can I reset dataprocessor after reloading data?

Best Regards,


does not seem to reset the dataprocessor
Yes, dataprocessor doesn’t react on grid reloading, you can use next code to fully reset page
dp.updatedRows=[]; //will clear inner state of dataprocessor