How can I add new row always on top position

How can I add new row always on top position

NaveenKumarNaveenKumar Posts: 1Questions: 1Answers: 0
edited May 2015 in Free community support

I've implemented the dataTable calling the api to insert new rows. When I click on "Add new row" on reverse sorting new row is appending at last position, how can I always display new row always on top irrespective of sorting.

Answers

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

    Row position is based on the ordering that is applied to the table. If you want the row to be at the top of the table, you would need to have appropriate data int he row, and sorting rules applied to the table to have it appear in that location.

    Allan

This discussion has been closed.