Datatables Editor - Submit only single Cell value change?
Datatables Editor - Submit only single Cell value change?
While I have been prototyping with replacing Datatables Editor default bubble/inline editor with X-Editable, I noticed that when only single Cell Data should be updated Datatables Editor seems to submit whole Row instead.
So simply put, am I using wrong selector or something? I experimented a lot by trying to pass Cell object and Cell node and index to limit what gets send to ajax method, but got varying results between nothing being sent, whole table data being sent and single row being sent.
...
editor.edit( {cells:cellIndex}, false).set( pdid, value ).submit();
...
Above update does cause ajax update to fire, but I would expect data to contain only single property value rather than whole row's data (with some data being null, mostly select lists that should contain lookups, might be related to my other problem with select lists). When using default Datatables Editor bubble editor for example, I mostly only got data about row cells that actually got updated.
So most likely it is some kind of selector problem, could you guys advice me how to submit only single cell value?
This question has an accepted answers - jump to answer
Answers
You can use the
submit
option of theform-options
object to tell Editor if it should submit the whole row or just the changed data.Regards,
Allan