Using jEditable with 1.10.0

Using jEditable with 1.10.0

duffettduffett Posts: 2Questions: 0Answers: 0

Using the 1.9.4 I was able to made a grid editable (text and select input elements) using the approach in the link below. Is this still supported now that "oTable.fnGetNodes()" is no longer supported? I tried changing "oTable.fnGetNodes()" to "oTable.cells().nodes()" with no luck. While it appears to load correctly, the click even never fires. Any ideas? Thanks in advance!

http://datatables.net/examples/api/editable.html

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    fnGetNodes is still supported - the API update is backwards compatible. In fairness it is better to use the new API I would say, but it should still work.

    Allan

  • duffettduffett Posts: 2Questions: 0Answers: 0

    How can I access that fnGetNodes method after changing to use the new initializer (oTable = $('#daily_projects').DataTable)

    After upgrading, the oTable object I have has properties: tables, table, draw, rows,row, columns, column,cells,cell...

    Or am I not able to use the new API in this manner?

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    How can I access that fnGetNodes method after changing to use the new initializer (oTable = $('#daily_projects').DataTa

    You can't. You need to use $().dataTable(). See: http://datatables.net/manual/api#Accessing-the-API.

    Allan

This discussion has been closed.