I am using jquery datatable using asp.net mvc core framework. Its working fine and showing data. DataTable also saving state of pagination, like if i am on page 2 and click on any row button after page relaod it will show same page. But my issue is i want to show same row with scroll position but right now its showing top of record after page reload.
$(document).ready(function() {
$('#offersTable').dataTable({
"bStateSave": true,
"fnStateSave": function (oSettings, oData) {
localStorage.setItem('offersDataTables', JSON.stringify(oData));
},
"fnStateLoad": function (oSettings) {
return JSON.parse(localStorage.getItem('offersDataTables'));
}
})
} ); Its working fine with save state with paging but i want to scroll to same position row when i did changes or click on button row. I am sorry for my bad english. Also i am using model to populate datatable.