jQWidgets Forums

jQuery UI Widgets Forums Grid Date input culture in grid

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Date input culture in grid #9129

    how can I change the option culture in datetimeinput on json datagrid?

    Thanks!

    Simone

    columns: [
    { text: ‘Data Movomento’, datafield: ‘data’, width: 120, columntype: ‘datetimeinput’, culture: ‘it-IT’ , width: 90, cellsalign: ‘right’, cellsformat: ‘d’},
    { text: ‘Causale’, datafield: ‘cod_causale’, width: 120 },
    { text: ‘Articolo’, datafield: ‘articolo’, width: 120 },
    { text: ‘Qta’, datafield: ‘qta’, minwidth: 120 },
    { text: ‘Note’, datafield: ‘note’, minwidth: 120 },
    { text: ‘Utente’, datafield: ‘utente’, minwidth: 120 },
    { text: ‘id’, datafield: ‘id’, minwidth: 120 },

    ]

    Date input culture in grid #9180

    Dimitar
    Participant

    Hello simoesterorfeo,

    The solution lies in setting the createeditor property:

                columns: [
    { text: 'Data Movomento', datafield: 'data', width: 120, columntype: 'datetimeinput', width: 90, cellsalign: 'right', cellsformat: 'd',
    createeditor: function (row, cellvalue, editor) {
    editor.jqxDateTimeInput({ culture: 'it-IT' });
    }
    },
    { text: 'Causale', datafield: 'cod_causale', width: 120 },
    { text: 'Articolo', datafield: 'articolo', width: 120 },
    { text: 'Qta', datafield: 'qta', minwidth: 120 },
    { text: 'Note', datafield: 'note', minwidth: 120 },
    { text: 'Utente', datafield: 'utente', minwidth: 120 },
    { text: 'id', datafield: 'id', minwidth: 120 },
    ]

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Date input culture in grid #9194

    Thanks work fine!!!

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

You must be logged in to reply to this topic.