Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jason on Mar 26, 2009 16:21
open dhtmlx forum
Dataprocessor updatedrows

I am using some code to see if there are any updated rows.

if(myDataProcessor.updatedRows.length > 0)
{
myDataProcessor.sendData();
}

I update a row. Run myDataProcessor.sendData(); and it sends the data. But it doesn't reset the updatedRows for some reason. So if I run that function again it thinks there are rows to send, but in reality there is nothing to send.
Answer posted by dhxSupport on Mar 27, 2009 06:16

updatedRows array is reseted after grid receive confirmation that rows was updated in the server side. To check if update operation was pass successfully you can turn on debug mode:

myDataProcessor.enableDebug(true)