I’ve my column type set as:
, { text: 'Product'
, datafield: 'product'
, editable: true
, columntype: 'numberinput'
, align: 'right'
, cellsalign: 'right'
, createeditor: function (row, cellvalue, editor) {
editor.jqxNumberInput({
});
editor.on('keyup', function (event) {
var allowNull = editor.jqxNumberInput('allowNull');
console.log(allowNull );
if(event.keyCode == 46){ // cancel event
editor.jqxNumberInput('val',null);
}
});
editor.on('focusout', function (event) {
var r = editor.jqxNumberInput('val');
if(r == null){
editor.jqxNumberInput('val',null);
}
});
}
, width: 150
, cellsformat: 'd2'
, inputMode: 'simple'
}
the problem is to set null value on the erased cell
When the cell lose the focus the null value is replaced with 0.00,
can help me?
Merci
S
-
This topic was modified 7 years, 10 months ago by shardik.