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
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.
is this resolved?
I'm constantly getting this. On my master page I the loader.js being brought in. then on each of the pages I call the loader with the resources, but it appears that if not EVERYTHING is pulled down or it doesn't think everything is pulled down, I get the locale issue and the grids don't load. The page is just broken. I can't keep telling the users to hit refresh until all lthe grids load correctly.
There a way to tell it to ignore locale? All I care about is English.
Html.Infragistics() .Loader() .ScriptPath(Page.ResolveClientUrl("~/Scripts/Infragistics/")) .CssPath(Page.ResolveClientUrl("~/css/Infragistics/")) .Regional("en") .Locale("en") .Theme("RTT") .Resources("igDialog, igGrid, igGrid.Paging, igGrid.Sorting, igGrid.Filtering, igShared, igGrid.Hiding") .Render()
Martin,
I can't find Infragistics.ui.grid.js can you tell me where to locate?
Thanks ML
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")