This project is read-only.

Filter Not working

Sep 5, 2016 at 1:08 PM

Filter is just tearing me a part... I'm really stuck with this.
Followed the example here..

I'm using visual studio 2015 MVC - 4

My View page code

@using GridMvc.Html
@model IEnumerable<Admin>

    ViewBag.Title = "Index";

<h2>Item Branch Admin</h2>

    <script src="@Url.Content("~/Scripts/jquery.min.js")" type="text/javascript"> </script>
    <link href="@Url.Content("~/Content/Gridmvc.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/gridmvc.min.js")" type="text/javascript"> </script>

    @Html.ActionLink("Create New", "Create")

@Html.Grid(Model).Columns(columns =>
    columns.Add(Model => Model.Sup)

No filter pop up shown. :(
F12 I see javascript error that says- gridmvc.min.js: 1 Uncaught ReferenceError: $ is not defined
Sep 6, 2016 at 4:11 AM
Error telling it need jquery library reference.

Just add jquery library reference above gridmvc.min.js.

<script src=""></script>


<link href="@Url.Content("~/Content/Gridmvc.css")" rel="stylesheet" />
<link href="@Url.Content("~/Content/bootstrap.min.css")" rel="stylesheet" />
<script src="@Url.Content("~/Scripts/jquery-1.9.1.min.js")"></script>
<script src="@Url.Content("~/Scripts/gridmvc.min.js")"></script>

__For sample you can have look on this article.
Link :-