can you create a row between rows already created in datatable?

can you create a row between rows already created in datatable?

gianca7u7gianca7u7 Posts: 6Questions: 2Answers: 0

using indexOf() or splice() can you create a row between rows already created in datatable? case: I have row 1 and row 2, and I want to create a row between row 1 and row 2.

Replies

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

    The position of the rows in a DataTables is entirely dictated by the ordering applied to the table. If you need a row to appear between two others, the ordering (sorting) of the data that is currently being applied to the table would need to position them as you need. You could use specific data values to force ordering in a specific way.

    Allan

Sign In or Register to comment.