I've created a grid using Grid.Mvc. For some reason sorting is not working on it. When I click on the column to sort it, it just reloads the page. I'm very new to MVC and not sure how to fix this. Here is my code.
@Html.Grid(Model.StudentCrsHist).Columns(columns =>
{
columns.Add(x => x.YR_CDE)
.Titled("YR_CDE")
.SetWidth(110)
.Sortable(true);
columns.Add(x => x.TRM_CDE)
.Titled("TRM_CDE")
.SetWidth(110)
.Sortable(true);
columns.Add(x => x.SUBTERM_CDE)
.Titled("SUBTERM_CDE")
.SetWidth(110)
.Sortable(true);
columns.Add(x => x.CRS_CDE)
.Titled("CRS_CDE")
.SetWidth(110)
.Sortable(true);
columns.Add(x => x.CRS_DIV)
.Titled("CRS_DIV")
.SetWidth(110)
.Sortable(true);
columns.Add(x => x.CREDIT_HRS)
.Titled("CREDIT_HRS")
.SetWidth(110)
.Sortable(true);
columns.Add(x => x.CRS_TITLE)
.Titled("CRS_TITLE")
.SetWidth(110)
.Sortable(true);
columns.Add(x => x.ADD_FLAG)
.Titled("ADD_FLAG")
.SetWidth(110)
.Sortable(true);
columns.Add(x => x.ADD_DTE)
.Titled("ADD_DTE")
.SetWidth(110)
.Sortable(true)
.Format("{0:MM/dd/yyyy}");
columns.Add(x => x.DROP_FLAG)
.Titled("DROP_FLAG")
.SetWidth(110)
.Sortable(true);
columns.Add(x => x.DROP_DTE)
.Titled("DROP_DTE")
.SetWidth(110)
.Sortable(true)
.Format("{0:MM/dd/yyyy}");
})