Categories | Question details Back To List | ||
Grid dataprocessor POST with send records all at once I was using the dataprocessor with grid sending one row at a time, and have changed my server-side code to accept a post of all data at once. Here is the js configuration: g_dataprocessor.enableDataNames(true); g_dataprocessor.setUpdateMode("off"); g_dataprocessor.setTransactionMode("POST", true); Everything is almost working fine - server side I am receiving and storing the data. The problem is I don't know what to return back to the grid so it will mark the fields as saved. I tried returning an sid and tid that are the same as those sent by the control in the ids value (comma separated row IDs) but that is not working. Answer posted by Support on Apr 14, 2008 06:43 In case of single row updated you need to return someting similar to next <data> <action type="insert|delete|update" sid="some" tid="some" /> </data> In case of multiple row updates you need to return same structure for all rows <data> <action type="insert|delete|update" sid="some1" tid="some1" /> <action type="insert|delete|update" sid="some2" tid="some2" /> ... <action type="insert|delete|update" sid="someN" tid="someN" /> </data> Answer posted by Dan East on Apr 14, 2008 06:52 Bingo - works like a charm. Thanks! |