Uncaught TypeError: Cannot read property 'inline' of undefined

Uncaught TypeError: Cannot read property 'inline' of undefined

mvermacemvermace Posts: 1Questions: 0Answers: 0

I get this error when the inline is hit...Simple inline edit using example code. The js modules are loading correctly. I am loading them in this order: 1st datatables.js, select...js, buttons...js and then editor.datatables.js...

Any ideas? Thanks.

// Activate an inline edit on click of a table cell
$('#CompDiaryTable').on( 'click', 'tbody td', function (e) {
editor.inline( this );
} );

Replies

  • kthorngrenkthorngren Posts: 21,449Questions: 26Answers: 4,975

    Did you initialize the Editor and assign it to the editor variable?
    editor = new $.fn.dataTable.Editor( {....

    Kevin

This discussion has been closed.