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
710
Can't get it ... MVC5 - Razor - Grid - doesn't support property or method 'igGrid'
posted

I can't get it running. What i'am missing.

Create from VS2013 Template MVC Project.

Including the Infragistics folder (css and js)

Adding in the _Layout in the head section ...

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - xx-xx</title>

    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")

    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
    <script src="~/Scripts/jquery-ui-1.10.4.min.js"></script>

    <!-- This script reference is require by the Infragistics Loader rendered below -->
    <script src="@Url.Content("~/Infragistics/js/infragistics.loader.js")"></script>


</head>

and in the <body> ...

 @(Html.Infragistics().Loader()
        .ScriptPath(Url.Content("~/Infragistics/js/"))
        .CssPath(Url.Content("~/Infragistics/css/"))                        
        .Render()
    )

After that in the (new Index - View) ...

@using Infragistics.Web.Mvc
@model  TheShopWeb.Areas.Analysis.Models.ClosedOrdersModel

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<head>
    <title></title>


</head>
><body>

     <h2>Index</h2>

     @(Html.Infragistics().Grid(Model.ListOfOrdersClosed.AsQueryable())
        .Width("400px")
        .DataBind()
        .Render()
     )
 </body>