Any ideas on what could be causing this random JavaScript error? I'm using 12.2.20122.1021 and jQuery 1.8.3.
Unhandled exception at line 18, column 85 in http://localhost:3000/scripts/modules/infragistics.ui.grid.sorting.js
0x800a138f - Microsoft JScript runtime error: Unable to get value of the property 'locale': object is null or undefined
I'll let you know if I see any more errors after writing out the script tags manually (without the loader). The good thing is that I can now use SquishIt to combine/minify the files:
SquishIt.Framework.Bundle.Css() .Add("~/content/themes/bmt-ui/infragistics.theme.css") .Add("/content/structure/modules/infragistics.ui.shared.css") .Add("/content/structure/modules/infragistics.ui.grid.css") .Add("/content/structure/modules/infragistics.ui.editors.css") .Add("~/content/structure/infragistics.css") .WithoutRevisionHash() .Render("~/content/min/ig.css")
SquishIt.Framework.Bundle.JavaScript() .AddMinified("~/scripts/modules/infragistics.util.js") .AddMinified("~/scripts/modules/infragistics.datasource.js") .AddMinified("~/scripts/modules/infragistics.templating.js") .AddMinified("~/scripts/modules/infragistics.ui.shared.js") .AddMinified("~/scripts/modules/infragistics.ui.scroll.js") .AddMinified("~/scripts/modules/infragistics.ui.grid.framework.js") .AddMinified("~/scripts/modules/infragistics.ui.grid.featurechooser.js") .AddMinified("~/scripts/modules/infragistics.ui.grid.sorting.js") .AddMinified("~/scripts/modules/infragistics.ui.editors.js") .AddMinified("~/scripts/modules/infragistics.ui.grid.filtering.js") .AddMinified("~/scripts/modules/infragistics.ui.grid.resizing.js") .AddMinified("~/scripts/modules/infragistics.ui.grid.hiding.js") .AddMinified("~/scripts/modules/infragistics.ui.grid.paging.js") .WithoutRevisionHash() .Render("~/Scripts/min/ig.js")
Hi Dirk,
Infragistics loader injects scripts with async attribute and since the error you mention is from Microsoft's browser then you should be experiencing the issue under IE 10 (Async attribute is implemented in IE 10. Ref: https://developer.mozilla.org/en-US/docs/HTML/Element/script). The issue is very rarely experienced in other browsers supporting async attribute.
I logged this as a bug with #130831 in our internal tracking system. A support case is created on your behalf with number CAS-108462-M9X0Q7, so that you can be notified when the bug is fixed. You can find your active cases under Account - Support Activity in our website. Select your ticket and go to Development Issues tab to view the status of related bugs.
As a temporary fix you should reference igGrid files manually.
P.S.: About the locales … For the Ignite UI English installer English locales (for the grid and its features) are built into infragistics.ui.grid.js. You can verify that by looking into the file. On line 9 you should see the localizations.
Hope this helps,Martin PavlovInfragistics, Inc.
Hi again,
Yes the English locale is a valid file. Could you check with the networking tab of your browser developer tools whether this file is being requested by the infragistics loader or not. If it is then the file should be there.
Thank you for your patience.
Is that a valid file or is my install missing it? I looked in C:\Program Files (x86)\Infragistics\IgniteUI 2012.2\js\modules\i18n but do not see infragistics.ui.grid-en.js. Here is what I have for the ui.grid js files in modules\i18n:
Where would I get the english versions?
Hi there,
The loader should be loading the English locales without the need to manually configure it. Can you verify that the resource is loaded. To see whether something else is causing this issue put this line before the loader script include:
<script type="text/javascript" src="http://localhost:3000/scripts/modules/i18n/infragistics.ui.grid-en.js"></script>
Make sure that the i18n folder exists inside your modules folder and also that the infragistics.ui.grid-en.js exists.
Let us know if you're no longer experiencing the issue after you add this.