We have ASP.net C# MVC portal and we are using Datatables in it to display tables records.
The table records are around 45K.
So whats happening is, datatables are fetching entire 45k records and paging them for every reload. This is taking around 10 mins to display the table records.
So what I want is to do something that, data should be fetch page wise and not on every reload. If i select 1 then display 10 records, if i select 2 then display next 10 records.
I searched on google, and added "serverSide": true
in my code.
Still its not working, whereas now i am getting some error.
What else is needed to do so?
$('.table').DataTable({
"paging": true,
"lengthChange": true,
"searching": false,
"ordering": false,
"autoWidth": true,
"stateSave": true,
"serverSide": true
});