How can I add new row always on top position
How can I add new row always on top position
NaveenKumar
Posts: 1Questions: 1Answers: 0
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.
This discussion has been closed.
Answers
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