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.
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.
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.
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.
I've tried this but got the same error.
You will find attached the layout view rendering error.
Thanks for your help.
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.
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
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.
That was that.
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
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.