I got an error while using "submit onblur " by inline editor.

I got an error while using "submit onblur " by inline editor.

mahesh@systalent.commahesh@systalent.com Posts: 5Questions: 2Answers: 0

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

  • allanallan Posts: 48,282Questions: 1Answers: 6,967 Site admin
    Answer ✓

    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

  • mahesh@systalent.commahesh@systalent.com Posts: 5Questions: 2Answers: 0

    thank you allan.

  • mahesh@systalent.commahesh@systalent.com Posts: 5Questions: 2Answers: 0

    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?

  • colincolin Posts: 2,734Questions: 0Answers: 479
    edited October 17 Answer ✓

    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

  • mahesh@systalent.commahesh@systalent.com Posts: 5Questions: 2Answers: 0

    Thank you for your valuable time.
    Now it fixed.

Sign In or Register to comment.