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 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 PavlovInfragistics, Inc.
Hello Martin,
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.
Do you see any errors in the JavaScript console?
My best guess is that infragistics.core.js and infragistics.lob.js files cannot be found in the root of the application.
Best regards,Martin PavlovInfragistics, Inc.
That was that.
Thank you for your help.
Here is a link to my WebSite for a tutorial to use the Grid with ASP.NET MVC6.
http://sharevisual.com/en-us/developercafe.aspx
One more questions.
If I use the cdn syntax for referencing the js file
<script type="text/javascript" src="http://cdn-na.infragistics.com/igniteui/2015.2/latest/js/infragistics.core.js"></script>
<script type="text/javascript" src="http://cdn-na.infragistics.com/igniteui/2015.2/latest/js/infragistics.lob.js"></script>
I have a very strange error "JavaScript critical error at line 1, column 1 in http://cdn-na.infragistics.com/igniteui/2015.2/latest/js/infragistics.core.js\n\nSCRIPT1014: Caractère incorrect" and some cabalistic symbols appears in the VS window:
Any supplementary comment?
Best regards
I followed the instructions from the site and created a sample that runs as expected on my end. Even when I changed the Ignite UI resources to point to the CDN.
What it comes to my mind is that the files might be corrupted on some of the CDN endpoints. Can you check the content on the files to see whether the encoding is correct.
Try to migrate to Asp.net Core RC2. Cannot add the reference to my project. It tells that i need to use nuget. Did you have Packages for asp.net core.
I just found Ignite UI trial. Did I need to use that ?
BEst regards
We don't have support for ASP.NET Core RC2. The ASP.NET Core RTM version should be out today that's why we will directly target it in our next service release. Since the next Ignite UI SR will be several months from now, you can request a private build using our case system.