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 ?
Hello Martin,
I've tried this but got the same error.
You will find attached the layout view rendering error.
Thanks for your help.
Hello Michel,
You need to install jQuery UI with Bower as well and include it after the jQuery reference in _Layout.cshtml. Next you need to have the Ignite UI files included in the project and correctly referenced. I changed the references to point to the Ignite UI CDN so the sample should work out of the box.
Attaching the bowser.json and _Layout.cshtml files for your reference.
Best regards,Martin PavlovInfragistics, Inc.
Thank you for your reply.
You will find the download link of a zip file containing the vs project.
http://bit.ly/23RA3U4
It is a simple ASP.NET 5 MVC6 project generated with the VS2015 wizard. When launching the project you will see some options in the navigation bar:
Movie will display some movies object using simple HTML tag table
GridMovie will try to display the same object using an Infragistics Grid (2015.2 using Ignite UI MVC 6 dll), but it display the error.
I don't know if you're familiar with MVC6 but here are some hints.
The Views\Shared\_Layout.cshtml file contain the general design of the views in which I have added the infragistics reference to css et js infragistics files.
The Controllers\GridMoviesController.cs file create the movie collection and return the object that must be displayed using the Views\GridMovies\Index.cshtml file.
Thank you for your help.
I don't know why you see this error. Can you please send me the generated source code of the page (Right click -> View Source). Also, can you tell me which browser you're using?
Thanks in advance,Martin PavlovInfragistics, Inc.
Thank you for your reply but now another error occur
"0x800a01b6 - Erreur d’exécution BLOCKED SCRIPT L’objet ne gère pas la propriété ou la méthode « igGrid »"526 (Execution error; the object does not manage the iGrid method
My Index.cshtml
@using Infragistics.Web.Mvc@model System.Linq.IQueryable<Evo4GManager.Models.Product>
<!-- Ignite UI Required Combined CSS Files --><link href="D:/Program Files (x86)/Infragistics/2015.2/Ignite UI/css/themes/infragistics/infragistics.theme.css" rel="stylesheet" /><link href="D:/Program Files (x86)/Infragistics/2015.2/Ignite UI/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="D:/Program Files (x86)/Infragistics/2015.2/Ignite UI/js/infragistics.core.js"></script><script src="D:/Program Files (x86)/Infragistics/2015.2/Ignite UI/js/infragistics.lob.js"></script>
@(Html.Infragistics().Grid(Model).DataBind().Render())
Best regards.