Replacement for _fnGetTrNodes ?

Replacement for _fnGetTrNodes ?

idialloidiallo Posts: 6Questions: 0Answers: 0
edited March 2014 in DataTables 1.10
Hi,

The _fnGetTrNodes has been removed for 1.10:
https://github.com/DataTables/DataTables/commit/b1b4b58a9a4c93a99a166638f672b3bd080c16b0

It's for instance refered in the doc there: http://datatables.net/development/sorting

I've haven't seen that change in the 1.10 compatibility notes, so I wonder what the replacement function is ?

Replies

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    There is now a public API for it (the _fnGetTrNodes was never public, and I shouldn't have used it in the documentation - it won't be in the revised documentation!).

    The `rows().nodes()` method will get your the nodes: http://next.datatables.net/reference/api/rows().nodes()

    For the sorting, have a look at the updated examples here, which use the new API: http://next.datatables.net/plug-ins/sorting/#Custom-data-source-sorting

    Allan
  • idialloidiallo Posts: 6Questions: 0Answers: 0
    OK, thanks!
This discussion has been closed.