Go to newly added row

Go to newly added row

debdeb Posts: 3Questions: 0Answers: 0
edited April 2012 in DataTables 1.9
I'm inserting new rows using:

[code]
fnAddData( {
"DT_RowId": "myId",
"0": "str1",
"1": "str2",
"2": "str3",
etc...
} );
[/code]

I'm showing 10 entries at a time. Sometimes the new row won't fall within the range I'm currently viewing.

Is there a way to detect which "page" the new row is in, so I can use fnPageChange to advance to that page right after the new row is inserted?

Replies

  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    There is a plug-in for that: http://datatables.net/plug-ins/api#fnAddDataAndDisplay :-)

    Allan
This discussion has been closed.