I’m using jquery datatables with the jeditable plugin.
These are the options of my datatable
options = {
"bServerSide" : true,
"sAjaxSource" : "/javaServlet",
"bProcessing" : true,
"sPaginationType" : "full_numbers",
"bJQueryUI" : true
};
and My jeditable column options
options = {
placeholder : '',
fnOnCellUpdated : function(sStatus, sValue,
settings) {
recordUpdated();
}
};
The problem is when i edit a value in the 4th page for example, the datatable updates and reloads and sends me back to the first page.
When checking the network, “javaServlet” is being called again after the update is done
How can I fix this?
Thank you
A solution I found here (by fabatt and allan):
“In the file jquery.dataTables.editable.js you can find the
fnUpdatecommand in the function_fnApplyEditable. Add on both a false parameter and deactivate the invokement of_fnSetDisplayStart();“