View Full Version : Ext.data.Proxy handle create/update in one action

15 Jun 2012, 10:16 AM
We have a grid that allow user to create new record as wells as update existing records, and we have a "save" button which will issue the store.sync. When the user's dirty data contains both new records and existing records, EXTJS always issue two separate ajax calls, one for create and one for update. We would like extjs only send one ajax call for both create/update, this way we can handle it in one transaction in the back end code. Is there a way to config this?

15 Jun 2012, 6:19 PM
The sync looks at the records and determines what to api method to call. You could always make a direct ajax call your self instead of calling sync and send all the dirty records and let your server handle the rest.