Sorting MVC Grid without post back.
@Html.Grid(Model.LogViewModels).Named("ResultsGrid").Columns(c =>{
c.Add(mod => mod.Log.SiteID).Titled("ID").SetWidth(100);
c.Add(mod => mod.Log.ProcessDateFrom).Titled("Date From").SetWidth(100).Format("{0:MM/dd/yy HH:mm.ss}").SortInitialDirection(GridMvc.Sorting.GridSortDirection.Descending);
c.Add(mod => mod.Log.InboundPayerID).Titled("Payer ID").SetWidth(200);
c.Add(mod => mod.Log.OutboundPayerID).Titled("Outbound Payer ID").SetWidth(200);
c.Add(mod => mod.Log.PayerName).Titled("Payer Name").SetWidth(200);
});
I want to sort the grid without post back
using - jquery.tablesorter.min.js plugin & below JQuery. Sorting works but it takes one minute to sort.
$(function(){
$('table').addClass('tablesorter');
$('table').tablesorter({
widget: ['zebra'],
sortList: [[0, 1]]
});
});