We are using the jquery datatable for the table to save the state. Its not working for the first time, but it works fine next time. We need to retain the filter and paging even after the page refresh, but its not working for the first time. Below is the code we are using for the datatable:
$('#Accounts').dataTable({
"bStateSave": true,
"aaSorting": [[3, "asc"]],
"iDisplayLength": 100
});