Add New Row on top

Add New Row on top

niyasniyas Posts: 4Questions: 0Answers: 0
edited August 2012 in DataTables 1.9
Hi,

I am trying to add new row to my datatabe by using fnAddData. It added the row at the last,But I want my newly added row to be displayed on the top. Please help me on this.

Replies

  • allanallan Posts: 61,726Questions: 1Answers: 10,109 Site admin
    edited August 2012
    Order positioning is determined by the sorting applied to the table. So if your new row's data results in the row being at the top of the sort order, it will be placed at the top of the table.

    Allan
This discussion has been closed.