Created mvc 4 application.currently In that Application I'm loading thousands of records using client side pagination. this is how I do it
- Using select all Linq query I'm selecting all the recodes in that table
- Then using jquery tablesorter plugin its deviding all those records in to 10 by 10 chunks , showing those results page by page
here a picture of it
Since this is large set of data its taking too much time to load.There for I decided to do this using server side pagination.
but I have no idea to achieve this , could you suggest me a way to do this using jquery table sorter (without using jquery Data table)
This is controller class
public ActionResult Index()
{
return View(db.table_name.ToList());
}
This is how I used jquery table sorter plugin
<script type="text/javascript">
$(function () {
$("#table-hover")
.tablesorter({
widthFixed: true,
serverSideSorting: false
})
.tablesorterPager({
container: $("#pager"),
size: $(".pagesize option:selected").val()
});
});
</script>