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.