Implement to DataTables 1.10.1 row.insert()

Implement to DataTables 1.10.1 row.insert()

hubohubo Posts: 45Questions: 14Answers: 0

Implement something like row.insert(0, ["1","2","3"]) to add row to the beginning (index 0) with data ["1","2","3"].

This question has an accepted answers - jump to answer

Answers

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

    Feel free to post any code that you have that would implement this, but it isn't something I'm planning on implementing myself. Position of a row in a DataTable is controlled by the sorting condition applied to the table. So if you want it to appear at the top, you would need to have the sorting conditions place it at the top.

    Allan

  • hubohubo Posts: 45Questions: 14Answers: 0

    Hmmm, that's not good. I have non-sorted DataTable and need to add row to the top.

This discussion has been closed.