jQWidgets Forums

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Edit cell with money format Edit cell with money format #90502

    romulo.headthink
    Participant

    Now it’s ok.

    Thank you!

    in reply to: Edit cell with money format Edit cell with money format #90498

    romulo.headthink
    Participant

    The values are showed on the left. When I click and the editor is showed, but alignment is right.

    
    {
      datafield: 'VlrUnitario', text: 'Vlr. Unit.', align: 'right', width: '100',
      cellsalign: 'right', columntype: 'numberinput', cellsformat: "f2",
      initeditor: function (row, cellvalue, editor) {
               editor.jqxNumberInput({ digits: 6, decimalDigits: 2 });
               }
    },
    

    What can I do?

    in reply to: Edit cell with money format Edit cell with money format #90494

    romulo.headthink
    Participant

    Hello.

    My version was out of date. I downloaded and update my files.

    Now it’s working but a new problem.

    With initeditor property, the align of columns are incorrect.

    I define:

    
    cellsalign: 'right',align: 'right'
    

    But columns are with left align. Just in columns with editor.

    How can I fix it?

    in reply to: Edit cell with money format Edit cell with money format #90490

    romulo.headthink
    Participant

    Hello Peter.

    Now I’m using NumberInput for editin, but the problems continue.

    See (example test):

    
    Novo["Id"] = 0;
                    Novo["Sequencia"] = rowscounts + 1;
                    Novo["ProdutoId"] = $("#ProdutoId").val();
                    Novo["Descricao"] = $("#Descricao").val();
                    Novo["VlrUnitario"] = "1,30";  // HERE!
                    Novo["Unidade"] = Unidade;
                    Novo["Quantidade"] = QtdAux;
                    Novo["VlrTotal"] = Total;
                    
                    var commit = $("#GridItens").jqxGrid('addrow', null, Novo);
    

    If I put “1,30”, the grid show 1,30 but when I click on the cell, the value change to “NaN”.
    If I put “1.30”, the grid show 1.30 but when I click on the cell, the value change to “NaN”.

    Just integer numbers works.

    The column type is Number, and the column’s definition is:

    
    {
      datafield: 'VlrUnitario', text: 'Vlr. Unit.', align: 'right', width: '100',
      cellsalign: 'right', cellsformat: 'n2', cellclassname: classEditavel, columntype: 'numberinput',
          initeditor: function (row, cellvalue, editor) {
               editor.jqxNumberInput({ digits: 6, decimalDigits: 2 });
          }
    },
    

    Can you help me?

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