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
1115
Datepicker localization/regional settings using loader problem
posted

Hallo,

 we use igDatePicker inside igGrid together with the loader.  now we set the loader to:

 $.ig.loader({scriptPath : 'js/',cssPath : 'css/',resources : 'igGrid.Resizing.Updating,igCombo',regional:'de',ready : ...

 which loads the regionalfile  infragistics.ui.regional-de.js .

This file contains the datePatterns and language translations. The datePatterns are assigned correctly, but the translations are not and the datePicker is displayed in english.

Setting locale:'de' in the loader did also not help.  $.ig.regional.defaults show the german translations.

 

Any Idea? Where does the magic happen? :) Thanks. 

 

Parents
  • 19693
    posted

    Hello Max,

    The "magic" happens because of the exclusion when the jQuery date picker widget is configured to be used with the Infragistics editors.

    It is necessary to do separate setting for the datepicker’s regional settings.

    Please refer to the online help:

    http://help.infragistics.com/Help/NetAdvantage/jQuery/2012.1/CLR4.0/html/Using_Infragistics_Loader.html#_Ref322448594

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/i18n/jquery-ui-i18n.min.js"></script>                            

    $.ig.loader({

     scriptPath: 'http://localhost/ig_ui/js/',

     cssPath: 'http://localhost/ig_ui/css/', 

    resources: 'modules/i18n/regional/infragistics.ui.regional-i18n.js,igShared,igEditors,igValidator',

    regional:'de',

    locale :'bg'

    }); 

    $('#validityPeriodDatepicker')                                    

     .igDatePicker({                                    

    validatorOptions: getValidationOptions(),                                    

     required: true,                                    

     regional: 'de',                                    

     width: 190,                                    

    dateInputFormat: 'date'    

    });

    Hope this helps.

Reply Children