Filter Not working

Sep 5, 2016 at 1:08 PM
Hi,

Filter is just tearing me a part... I'm really stuck with this.
Followed the example here.. http://gridmvc.codeplex.com/wikipage?title=Filtering&referringTitle=Documentation

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>

<p>
    
    <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")
</p>

@Html.Grid(Model).Columns(columns =>
{   
    columns.Add(Model => Model.Sup)
    .SetWidth(100)
    .Filterable(true)
    .SetFilterWidgetType("TextFitlerWidget");
 

}).WithPaging(100)
Error:
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="http://code.jquery.com/jquery-1.9.1.js"></script>

e.g.

<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 :- http://www.c-sharpcorner.com/UploadFile/4d9083/creating-simple-grid-in-mvc-using-grid-mvc/