Can we trigger Editor ajax POST if non inline editable columns data is changed
Can we trigger Editor ajax POST if non inline editable columns data is changed
Hi,
I am using DataTables Editor inline editing functionality. Based on class name, making some of the columns editable, similar to example here,
https://editor.datatables.net/examples/inline-editing/simple
Have 2 columns in Datatable in each row, for which data is updated via external form. So updating these Columns manually using following code,
var curRowData = tblInstance.row('#'+curRowId).data();
curRowData[columnName] = 'newvalue1';
tblInstance.row('#'+curRowId).data(curRowData);
The only problem is by directly updating column, this is not triggering ajax request for editor. Need to submit this new columns data to server.
Is there any way editor can submit row data, even if value in other non inline editable columns data is changed.
Thanks
This question has an accepted answers - jump to answer
Answers
You can use the Editor API to trigger a submit. For example use
edit()
,val()
andsubmit()
to open a form in edit more, set a value and then submit.Allan
Thank you.