PDA

View Full Version : Passing GridRow editor update request payload to method



genTaliaru
8 May 2020, 11:32 PM
I have a store conifg

{ type : 'store',
paramsAsJson: true,
headers : {
'Content-type': 'application/json',
'accept' : 'application/json'
},
reader : {
type : 'json',
rootProperty: 'payload'
},
proxy: {
type: 'ajax',
api : {
read : 'read.php',
create : 'insert.php',
update : 'update.php',
destroy: 'delete.php'
}
}
}
If the sends data using JSON {"payload":someData}
But the API update.php makes the update and sends back data also using JSON.

How can i catch update and crate request payload? I didint find any events for it. Or i have to write a custom submiter or something like this?