Insert new row at the top of the datatable?

Insert new row at the top of the datatable?

relipserelipse Posts: 10Questions: 0Answers: 0
edited May 2013 in General
Regardless of sort order is it possible to insert a new row at the top, sort of like pinning it to the top?
This would be a useful feature if it doesn't already exist.

The idea is that you want to add a new row and see it appear right away.
Jim

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    No - sorting defines the positions of the rows in DataTables always. If a row is inserted into the DataTable, it is positioned by the sort applied to the table.

    Allan
  • relipserelipse Posts: 10Questions: 0Answers: 0
    ok thanks, I ended up using jquery.scrollTo plugin as a work around so that it scrolls directly to the item in the table, thus showing the user the last added/edited entry.
This discussion has been closed.