DataProcessor - UpdatedRows not cleared

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

You can clear dataProcessor cache with following code:

dp._in_progress = {} dp.updatedRows = []

Thanks it worked perfectly.

Thank you - it solved my issue too.

Thanks, I had the same issue in dhtmlx 5.1 Pro.

Is there still no api method to take care of this?