jQWidgets Forums

jQuery UI Widgets Forums Editors DateTimeInput Calendar overrides culture

This topic contains 2 replies, has 2 voices, and was last updated by  alexz 12 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Calendar overrides culture #15538

    alexz
    Member

    Hi,

    I have the following code at the beginning of the page:

    		<script type="text/javascript">
    jQuery.global.preferCulture('fi-FI');
    </script>

    and the following jqxDateTimeInput declaration:

    $('mydate').jqxDateTimeInput({ culture: 'fi-FI', formatString: 'd.M.yyyy H:mm', width: '250px', height: '25px', value: new $.jqx._jqxDateTimeInput.getDateTime(new Date('2013/01/16 17:15:00')), theme: 'classic' });

    after that my jQuery.global.culture is reset to default ‘en-US’.

    After ny own investigation I found out that jqxDateTimeInput contains jqxCalendar and calendar calls:

    jQuery.global.preferCulture(this.culture);

    And since calendar culture is not set the culture is reset to default.

    How can I set culture of calendar that is inside jqxDateTimeInput?

    Thanks, Alex.

    Calendar overrides culture #15539

    Peter Stoev
    Keymaster

    Hi Alex,

    The Calendar’s culture property is synchronized with the DateTimeInput’s culture by default. For localization, please refer to the jqxDateTimeInput’s localization sample.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Calendar overrides culture #15612

    alexz
    Member

    Thanks, it seems to work now.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.