jQuery UI Widgets Forums Grid Decimal digits does not work

This topic contains 1 reply, has 2 voices, and was last updated by  Nadezhda 10 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Decimal digits does not work #61031

    mustafa
    Participant

    hello I’ve added a number of grid,but Decimal digits does not work

     columns: [ 
      { text: 'Expense Sum', datafield: 'ExpenseSum', inputMode: 'simple', align: 'right', cellsalign: 'right', width: 200,  decimal: 2,spinButtons: true ,columntype: "numberinput" },
                    
    Decimal digits does not work #61040

    Nadezhda
    Participant

    Hello mustafa,

    You are using properties of jqxNumberInput in jqxGrid and this is the reason that digits doesn’t work. Please, find below an example which uses “createeditor” function for adding parameters to the editor.

    columns: [ 
      { text: 'Expense Sum', datafield: 'ExpenseSum',  align: 'right', cellsalign: 'right', width: 200,  columntype: "numberinput"
     createeditor: function (row, cellvalue, editor, celltext, cellwidth, cellheight) {        
        editor.jqxNumberInput({  decimal: 100, spinButtons: true, inputMode: 'simple', decimalDigits: 2, decimalSeparator: "," });
     }
    },

    Best Regards,
    Nadezhda

    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.