jQuery UI Widgets Forums Grid digit grouping in grid

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • digit grouping in grid #22989

    simpleweb
    Member

    hi there,

    I’m using jqxgrid, and have editable cells with numeric values. Not sure how to format them with comma, like instead of 1000, make it 1,000. Here is a sample of data cell that I have:

    ….
    { text: ‘Price’, datafield: ‘decPrice’, width: 90, cellsalign: ‘right’, columntype: ‘numberinput’,
    createeditor: function (row, cellvalue, editor) {
    editor.jqxNumberInput({ decimalDigits: 0, digits: 10 });
    }
    },…..

    I want to be able to group the numbers with comma when it is displayed and when in edit mode. Is this possible?

    thanks

    digit grouping in grid #23007

    Peter Stoev
    Keymaster

    Hi,

    In edit mode, the “comma” will not be displayed. For formatting the text in the cells, you may set the “cellsformat” property to a value like ‘f0’.

    Best Regards,
    Peter Stoev

    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.