Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Apr 23, 2008 14:06
open dhtmlx forum
Dataprocessor

I would like to reload the grid by using updatefromXML after the dataprocessor has completed senind the data back to the server. So is there a way to know wether the dataprocessor has completed sending all the inserted,updated and deleted rows back to the server??
Answer posted by Support on Apr 24, 2008 03:24
The dataprocessor has an event which fires after each row update

    dataproc.setOnAfterUpdate(function(){
        // code here will be called after each row updated
    })
If you need to catch moment when all rows processed , you can do it in next way

    dataproc.setOnAfterUpdate(function(){
        if (dataproc.getSyncState()){
            // code here will be called after all  rows updated
        }
    })