Hello,
I am using dhtmlx 2.5 PRO.
I have a grid associated to a dataprocessor.
–code–
var dataProcessor= new dataProcessor(url);
dataProcessor.setUpdateMode(“off”);
dataProcessor.setTransactionMode(“POST”,true);
dataProcessor.enableUTFencoding(true);
dataProcessor.enableDataNames(true);
…
dataProcessor.setVerificator(0, myValidateFunction);
dataProcessor.defineAction(“update”, modifyDataProcessorEvent);
dataProcessor.defineAction(“insert”, modifyDataProcessorEvent);
dataProcessor.defineAction(“delete”, modifyDataProcessorEvent);
dataProcessor.defineAction(“invalid”,invalidDataProcessorEvent);
dataProcessor.defineAction(“error”, errorDataProcessorEvent);
dataProcessor.defineAction(“refresh”, refreshDataProcessorEvent);
dataProcessor.init(mygrid);
–code–
When I reload the grid with new data:
–code–
mygrid.clearAll(false);
mygrid.loadXML(url, onGrilleLoaded);
–code–
my dataprocessor is not been refreshed automatically, because “dataProcessor.updatedRows” still has the information related to the modifications previously done to the grid.
Question:
How do I restart / clear a dataprocessor after I reload a grid with new data???
Thanks