jQWidgets Forums

jQuery UI Widgets Forums Grid Format number input

This topic contains 3 replies, has 2 voices, and was last updated by  Katashov Dima 10 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Format number input #58494

    Katashov Dima
    Participant

    Hello!
    How I can change format of number input, I need format like : “1 234 444.54” dont like: “1,234,444.54”.
    TY

    Format number input #58499

    Nadezhda
    Participant

    Hello Katashov Dima,

    For adding some custom parameters to the editor you can use the column ‘createeditor’ callback function. This function is called when the editor is created.
    In this case you need to set the ‘groupSeparator’ property:

    {
        text: 'Quantity', datafield: 'quantity', width: 200, align: 'right', cellsalign: 'right', columntype: 'numberinput',
          createeditor: function (row, cellvalue, editor) {
            editor.jqxNumberInput({ decimalDigits: 2, digits: 7, groupSeparator: " ", inputMode: 'advanced' });
        }
    },

    Best Regards,
    Nadezhda

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

    Format number input #58502

    Katashov Dima
    Participant

    So thank you so much, very helpful. I get number values from database in grid, and datatype number return me “1,234,444.54″, how i can changed too?

    Format number input #58503

    Katashov Dima
    Participant

    I find this in localization, ty. Question is close.

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

You must be logged in to reply to this topic.