Hi again, how to reset sorting after adding new row, so that is as default. I would like when I add row to be on top. I have hidden column (with ids from db) and sort on it as default.
I think what you might be looking for is the fnSort api function. (http://datatables.net/api#fnSort)
After you add the row, you should be able to call
[code]
oTable.fnSort([[0, 'desc']]);
[/code]
Which will sort column 0 in descending order. (you can put your own column and order by)
Replies
After you add the row, you should be able to call
[code]
oTable.fnSort([[0, 'desc']]);
[/code]
Which will sort column 0 in descending order. (you can put your own column and order by)
Hope this helps