Hi
I am unable to get the 2013.1 IngiteUI grid working on my VS2012 ASP.NET MVC 4.0 Razor project. The documentation seems to refer to older versions of the component.
I have the following code in my _Layout.cshtml head..
@Styles.Render("~/Content/css") @Styles.Render("~/Content/themes/base/css")
<link href="@Url.Content("~/igniteui/css/themes/infragistics/infragistics.theme.css")" rel="stylesheet" /> <link href="@Url.Content("~/igniteui/css/structure/infragistics.css")" rel="stylesheet" />
@Scripts.Render("~/bundles/modernizr") @Scripts.Render("~/bundles/jquery") @Scripts.Render("~/bundles/jqueryui")
<!-- Ignite UI Required Combined JavaScript Files --> <script src="@Url.Content("~/igniteui/js/infragistics.core.js")"></script> <script src="@Url.Content("~/igniteui/js/infragistics.lob.js")"></script>
And the following in my view...
@( Html.Infragistics() .Grid<Venue>() .ID("VenueGrid") .AutoGenerateColumns(true) .Height("500") .DataSourceUrl(Url.Action("VenueGridGetData")) .Render())
When i run it I get the error..
Object doesn't support this property or method at the igGrid java script call.
Please would it be possible for you to create a VS2012 ASP.NET MVC Razor sample that uses the grid. The javascript and CSS files folder structure for the component have changed so it definitely appears to be out of date.
Hi Michael,
The order of the script references looks correct for 13.1. You can receive that error when one of the script files fails to load. I recommend using the developer tools to determine if any of the script requests are failing with 404 errors as your first step to debug. I also see that you are using the built-in ASP.NET script minification so you should double check that is configured correctly. Here are some instructions for Chrome and IE:
Chrome
https://developers.google.com/chrome-developer-tools/docs/network
IE
http://msdn.microsoft.com/en-us/library/ie/hh968260(v=vs.85).aspx#NetworkTab
Also, can you provide a link to the help documentation that you saw was incorrect? Thanks.
Hi Aaron,
I will check that out. I am using IE8 so will need to upgrade to IE9. Could IE8 be a problem ?
Last week Michael H. replied and said he would generate a sample by Tuesday. I would be grateful if he still could so I can be sure that it is my setup that is a problem rather than a bug in the control.
As far as the documentation is required please see..
http://help.infragistics.com/Help/NetAdvantage/jQuery/2013.1/CLR4.0/html/igGrid_Overview.html
It refers to...
<script src="scripts/infragistics.js" type="text/javascript"></script>As far as I can see this file does not exist anymore in 13.1. Perhaps this file existed in v12 ?
script
src
"scripts/infragistics.js"
type
"text/javascript"
</
>