jQWidgets Forums

jQuery UI Widgets Forums Grid Localization patterns doesn’t work

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 13 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Localization patterns doesn’t work #3051

    Fabio
    Participant

    Hi,

    I try localization in jqxGrid for Italian translate.

    … words , separator , symbols … are all ok !
    but I’ve problem with patterns:

    var mylocalize = {};
    var mypatterns = {
    d: “dd/MM/yyyy”
    };
    mylocalize.patterns = mypatterns;
    $(“#mygrid”).jqxGrid(‘localizestrings’, mylocalize);

    I found always English global setting : MM/d/yyyy

    Anyone can help me?

    My jqxwidgets version: 1.9 (last)

    I see in changelog versione one new feature : jqxGrid Dates parsing.
    What is it?

    Best Regards,

    Fabio

    Localization patterns doesn’t work #3079

    Peter Stoev
    Keymaster

    Hi Fabio,

    The solution is to initialize your Grid columns with the ‘cellsformat’ property which is set to the required Date format string.

     { text: 'Shipped Date', datafield: 'ShippedDate', width: 230, cellsformat: 'dd/MM/yyyy' },

    The jqxGrid Dates parsing was improved in the latest version. We’ve added support for JSON Dates i.e Dates in this format: /Date(1224043200000)/

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.