I have a data grid with editSettings mode set to Batch (instead of Normal).
I have added code so that I can single click in a cell to start edit mode. This was taken from an answer given to another forum question:
self.$refs.datagrid.ej2Instances.element.addEventListener('mousedown', function (e) { var instance = this.ej2_instances[0];
if (e.target.classList.contains("e-rowcell")) { let index = parseInt(e.target.getAttribute("Index")); let colindex = parseInt(e.target.getAttribute("ariacolindex")); let field = instance.getColumns()[colindex].field; instance.editModule.editCell(index, field);
} }); This is working ok. I can click in a cell and it goes straight to edit mode. I can change the value to 123 and when I click in the same column, next row, the cell updates and continues to show 123 as it should.
However, if I change it to a numeric entry, it doesn't work properly.
I added this code to the column:
:edit="editQuantity" edit-type="numericedit"
editQuantity: { params: { decimals: 0, min: 1, max: 9999, showSpinButton: false } },Thank you very much. That has fixed my problem