Dataprocessor not recognizing rows added via json parse


I need to add many rows to a grid at one time. Using addRow slows the grid down too much, so I’m adding them using grid.parse(json_array, “json”). However, when I add the rows, they aren’t recognized as added by the dataprocessor, so they don’t get saved to the database. How can I make the dataprocessor recognize these rows in an efficient manner?


You should manually mark new rows us updated:

mygrid.attachEvent("onRowAdded"),function(id){ dp.setUpdated(id,true); })

Brilliant. You rock. Thank you.

In case anyone else is having this problem, I actually got it to work using the onRowCreated event.