Adding a new row to a particular position inside a data table

Adding a new row to a particular position inside a data table

anand4nkanand4nk Posts: 1Questions: 0Answers: 0
edited June 2012 in DataTables 1.8
Hi all,

I have a data table in one of my jsps. Certain rows inside the data table have a + button against it. On clicking + button, 2 additional data rows shall be inserted just below the current row. I have tried using fnAddData and fnAddTr. But bothe of them are appending the newly added data to the bottom end of the data table. Can anyone suggest a solution for this.

Thanks,
Anand

Replies

  • koosvdkolkkoosvdkolk Posts: 169Questions: 0Answers: 0
    I think that is not possible: Sorting determines the position of rows. So you could add your row, and then re-sort the table...?
This discussion has been closed.