Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
Cannot use iGrid with ASPNET MVC 6
posted

When using a very simple example I've got an error "JavaScript execution Error $ is undefined" (It is tanslated from french message)

Index.cshtml ontent

@using Infragistics.Web.Mvc

@model System.Linq.IQueryable<MyApp.Models.Product>

@(Html.Infragistics()

.Grid(Model)

.DataBind()

.Render())

Any suggestions ?

Parents
No Data
Reply
  • 23953
    Offline posted

    Hello Michel,

    It looks like you don't have jQuery script referenced on the page. Please note that even when you use Ignite UI MVC Wrappers you still need to reference all client scripts on the page.

    Here are an example references:

        <!-- Ignite UI Required Combined CSS Files -->

        <link href="http://cdn-na.infragistics.com/igniteui/2015.2/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet" />

        <link href="http://cdn-na.infragistics.com/igniteui/2015.2/latest/css/structure/infragistics.css" rel="stylesheet" />

     

        <script src="http://ajax.aspnetcdn.com/ajax/modernizr/modernizr-2.8.3.js"></script>

        <script src="http://code.jquery.com/jquery-1.12.0.min.js"></script>

        <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>

     

        <!-- Ignite UI Required Combined JavaScript Files -->

        <script src="http://cdn-na.infragistics.com/igniteui/2015.2/latest/js/infragistics.core.js"></script>

        <script src="http://cdn-na.infragistics.com/igniteui/2015.2/latest/js/infragistics.lob.js"></script>

    Hope this helps,
    Martin Pavlov
    Infragistics, Inc.

Children