Editor - inline submit option
Editor - inline submit option
Hello,
I've noticed something when i edit some values in my datatable. I'am using this example :
https://editor.datatables.net/examples/inline-editing/editIcon.html
Server side, when i post the new val, i only get the datas as they are displayed, but not the id value (which is not displayed in my table).
Is there a way to get this data (the row id)?
I've tried with submit : all and submit : allIfChanged, but impossible to get the row id.
Thank you
This question has an accepted answers - jump to answer
Answers
The
submit
option ofform-options
set toallIfChanged
is the correct way to do this. The row id is part of the data key submitted.For example, consider:
In the above the
row_29
is the primary key (id).Allan
thank you !