Editor fields
Editor fields

I'm doing some custom server side handling for the inline editor, there's only a couple of fields that I allow to be edited and have only declared these in the datatables editor initialisation whereas the datatables initialisation has additional fields.
When I return the JSON from the server to the client only the editable fields are sent back but I'm getting an error message 'Requested unknown parameter 'xxxx' for row 1, column 7', is this because I need to send back all the field values?
Answers
Correct - the client-side expects the full data for the row to be returned. This is to allow for server-side computed values to be shown.
Allan
Thanks Allan, however the inline editing only seems to be sending the edited field even if I add all the others as hidden fields, is there some configuration I need to add for it to post all the fields to the server?
Yes, if you want it to send all change, use the
submit
option forform-options
set to beallIfChanged
. There is an example here.Allan