jQWidgets Forums
Forum Replies Created
-
Author
-
January 11, 2017 at 1:20 pm in reply to: Edit cell with money format Edit cell with money format #90502
Now it’s ok.
Thank you!
January 11, 2017 at 12:45 pm in reply to: Edit cell with money format Edit cell with money format #90498The 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?
January 11, 2017 at 12:27 pm in reply to: Edit cell with money format Edit cell with money format #90494Hello.
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?
January 11, 2017 at 11:27 am in reply to: Edit cell with money format Edit cell with money format #90490Hello 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?
-
AuthorPosts