I got an error while using "submit onblur " by inline editor.
I got an error while using "submit onblur " by inline editor.
The error shows like below,
dataTables.editor.min.js:10 Uncaught TypeError: extender is not a function
at Object.<anonymous> (dataTables.editor.min.js:10)
at Function.each (jquery-1.10.2.min.js:4)
at Editor.(anonymous function).(anonymous function) [as _submitTable] (/projectName/resource/js/dataTables.editor.min.js:10:129324)
at Editor.(anonymous function).(anonymous function) [as _submit] (projectName/resource/js/dataTables.editor.min.js:10:128077)
at dataTables.editor.min.js:10
at Editor.(anonymous function).(anonymous function) [as _event] (projectName/resource/js/dataTables.editor.min.js:10:114496)
at send (dataTables.editor.min.js:10)
at Editor.(anonymous function).(anonymous function) [as submit] (projectNameresource/js/dataTables.editor.min.js:10:88445)
at Editor.(anonymous function).(anonymous function) [as _blur] (projectName/resource/js/dataTables.editor.min.js:10:108311)
at Editor.(anonymous function).(anonymous function) [as blur] (projectName/resource/js/dataTables.editor.min.js:10:64486).
Editor initialize as,
editor = new $.fn.dataTable.Editor({
table: "#ratesDataTable",
idSrc: 'rateRowId',
fields: [ {
name: "electionId"
}]});
Activate inline editing as,
$('#rateDataTable').on( 'click', 'tbody td:not(:first-child)', function (e) {
editor.inline( this, {
onBlur: 'submit'
} );
} );
Thanks in advance.
This question has accepted answers - jump to:
Answers
You need to update to the latest version of DataTables. There was a bug in Editor that required a change in both DataTables and Editor.
Regards,
Allan
thank you allan.
hi, allan,
my datatable version updated to 1.10.19.But now scroll is not working.
Code used:
$('#reDataTable').DataTable( {
"scrollX": true
} );
Is scroll depends on version?
Hi @mahesh@systalent.com ,
As you can see, it's working as expected in this example here. Could you link to your page or create a test case, please. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin
Thank you for your valuable time.
Now it fixed.