1👍
postData
will be used only during filling the grid if you use non local data (url
is defined and you use datatype: "json"
or datatype: "json"
).
If you need to post additional parameters during editing of the grid you should use options or callbacks which corresponds the editing mode which you use. The code which you posted uses cell editing (cellEdit: true
). So you need to specify URL to which the data will be posted using cellurl
parameter. You can use for example beforeSubmitCell
callback to extend the data which will be sent to the URL:
cellEdit: true,
cellurl: '/someUrl',
beforeSubmitCell: function () {
return { MyId: return $('#MyId').val() };
}
In the above code I replaced additionally cellurl
👤Oleg
Source:stackexchange.com