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.
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,
I'm trying to change my igGrid language, for this, I've tried various combinations with the scripts, but still have not managed to change it.I have it:<script src="~/Scripts/jQuery/Common/js/infragistics.js"/><script src="~/Scripts/jQuery/Common/js/infragistics.loader.js"/>
@(Html.Infragistics().Loader().LocalePath("~/Scripts/jQuery/Common/js/modeules/i18n/").CssPath("~/Scripts/jQuery/Common/CSS/") _.ScriptPath("~/Scripts/jQuery/Common/js/") _ .Locale("es").Regional("es").Resources("igGrid"))
but when I load my page, can not find the files:
/$path$/structure/modules/infragistics.ui.shared.css
infragistics.ui.grid.css
infragistics.ui.editores.css
insfragistics.ui.validator.css
/$path$/modules/infragistics.util.js
I do not understand what happens.
I try to put the value of the path variable, but are only CSSpath and ScriptsPath.
Thanks in Advanced.
Best Regards.
Elena Guillén