Edit datatable entries without using editor

Edit datatable entries without using editor

sherinsherin Posts: 18Questions: 1Answers: 0

Is there any way to edit datatable entries without using editor plugin?

Replies

  • allanallan Posts: 64,032Questions: 1Answers: 10,555 Site admin

    Sure - use whatever form you want. The DataTables API method to update a row's data is row().data().

    Allan

  • sherinsherin Posts: 18Questions: 1Answers: 0
    edited August 2015

    Thanks Allan. I tried that. It is working now.

    For making it work, I have changed otable = $('#tablee').dataTable( { }) to otable = $('#tablee').DataTable( { }) - it is working perfectly.

    But there comes an another issue with fnDestroy(). It now shows

    "TypeError: otable.fnDestroy is not a function".

  • allanallan Posts: 64,032Questions: 1Answers: 10,555 Site admin

    Use destroy() if you are using the new API rather than the legacy one.

    Allan

  • sherinsherin Posts: 18Questions: 1Answers: 0
    edited August 2015

    Thanks alot Allan. It is working fine now :)

This discussion has been closed.