In the grid, one of the column’s type is numberinput, and their default value is null. If user click any empty cell in that column, then click outside of the cell(not type anything in the cell), the cell value will be changed to 0. Why this happen? How can I avoid this action? Thanks.
Hi, Martin, thanks for your reply!
In your code, I found a problem, if I type 0 in one cell of the Quantity column, then this 0 can’t save in the cell.
I found the root of this problem is, editor.val() will auto generate a 0 if that cell is null.
In generatedata.ts, I set row['quantity'] = null. Then, when I click a Numberinput cell, and print the values of editor.val() and cellvalue from geteditorvalue(row: number, cellvalue: any, editor: any), the result are 0 and null.
So is there a way to stop auto generating 0 by Numberinput component? Thanks.