Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
595
Setting the regional value in the loader causes an exception on load
posted

I noticed the dates on the igGrid were showing the US date format (MM/DD/YYYY) instead of the UK date format (DD/MM/YYYY).

I tried to set the regional value in the loader to 'en-GB' as follows:

$.ig.loader({
    scriptPath: 'ig_res/igniteUI/js/',
    cssPath: 'ig_res/igniteUI/css/',
    regional: 'en-GB',
    resources: 'igGrid.*,igShared,igEditors,igValidator,extensions/infragistics.ui.editors.knockout-extensions.js,extensions/infragistics.datasource.knockoutjs.js,extensions/infragistics.ui.grid.knockout-extensions.js',

But I get the following error every time on load:

0x800a138f - JavaScript runtime error: Unable to get property 'extend' of undefined or null reference


If I remove the regional override, then the exception doesn't appear. Also, if I use the autoDetectLocale property and set it to true, then the dates are still in the wrong format, despite my machine being set to the en-GB culture.

Parents Reply Children