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,
if you are adding references manually, without using the script loader, you need to also include localization files first, for example:
<script type="text/javascript" src="http://localhost/ig_ui13.1/js/modules/i18n/infragistics.dataSource-en.js"></script> <script type="text/javascript" src="http://localhost/ig_ui13.1/js/modules/i18n/infragistics.ui.grid-en.js"></script>
Hope it helps. Thanks,
Angel
I'm using the loader like this:
$.ig.loader({ scriptPath: "/scripts/", cssPath: "/content/", theme: "bmt-ui", resources: "igGrid.Sorting,igGrid.Paging,igGrid.Filtering,igGrid.Hiding,igGrid.Resizing" });
Am I missing anything, or is there a way to tell it which locale to use? (en)
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.
Even with the locale and regional properties set on the loader, I still get these errors occasionally:
Unhandled exception at line 19, column 85 in http://localhost:3000/scripts/modules/infragistics.ui.grid.filtering.js
I just found references to the locale and regional properties. I'll try that for a while and see if I encounter any more of the random errors.
$.ig.loader({ scriptPath: "/scripts/", cssPath: "/content/", theme: "bmt-ui", resources: "igGrid.Sorting,igGrid.Paging,igGrid.Filtering,igGrid.Hiding,igGrid.Resizing", locale: "en", regional: "en" });