Editor: Only draw cell that has been edited
Editor: Only draw cell that has been edited
Hello everyone,
I have a table with client side data. For one of these cells i use the bubble edit to change the value. The update in the database works fine, but the problem is that the callback returns only the changed parameter but the editor wants to redraw the full row, what causes this error:
DataTables warning: table id=artikelliste - Requested unknown parameter 'artikelnr' for row 1, column 0. For more information about this error, please see http://datatables.net/tn/4
I tried this, so it prevents the row to be redrawn but the error still exists:
var editor = new $.fn.dataTable.Editor({
ajax: '/phoenix/stammdaten/inkl_ajax_artikelliste_new_editor.php',
table: '#artikelliste',
fields: [
{label: 'Bezeichnung', name: 'bez', entityDecode: true}
],
i18n: {
edit: {
title: "Eintrag bearbeiten"
}
},
formOptions: {
bubble: {
submit: 'changed',
scope: 'cell',
drawType: 'none'
}
}
});
Is it possible to only redraw the cell that has been edited, because the other cell are calculated client side.
Answers
What version of Editor are you using? This should work out of the box with Editor 1.8.
Allan
I am using Editor 1.8 and DataTables 1.10.18, updated 2 days ago
Datatables
Ajax