fnAddData scroll to visible row
fnAddData scroll to visible row
Hi Allan,
i've enjoyed your DataTables very much, however i've got a small problem. I require to add a row dynamically and everything goes fine, however if in the current view i've more items than the ones set per page (example, i set 10 per page, i've 15 items and add a row), the added row is not visible, i understand that it's sort based, what i'm looking for is a way to "scroll" the table to the correct page (the one with the just added new item), how can i achieve that?
Thanks a million!
i've enjoyed your DataTables very much, however i've got a small problem. I require to add a row dynamically and everything goes fine, however if in the current view i've more items than the ones set per page (example, i set 10 per page, i've 15 items and add a row), the added row is not visible, i understand that it's sort based, what i'm looking for is a way to "scroll" the table to the correct page (the one with the just added new item), how can i achieve that?
Thanks a million!
This discussion has been closed.
Replies
http://datatables.net/examples/api/add_row.html
just click 10 times the button to add new rows and the "10th" is not visible 'till you push > or pick a different number of items per page (in which case the problem replicates, just push add new rows more times :) )
cheers.
Allan