Open mgsofteng opened 7 years ago
I actually figured it out by looking at your demo, script.js must be loaded before bootstrap bundle in the _Layout.cshtml file, thus the bottom portion should like:
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/bootstrap") @RenderSection("scripts", required: false)
When I'm sorting or paging, I get this error in the Firefox console (developer -> inspector): "Grid not found: TestGrid"
My view looks like this:
@model IEnumerable
@using MVCGrid.Web
@using TripViewer.Models
@{
ViewBag.Title = "Receipt Management";
}
and RegisterGrids:
public static void RegisterGrids() { ColumnDefaults colDefauls = new ColumnDefaults() { EnableSorting = true };
I have no idea what's causing it ?