Hello,
we implemented an onBeforeEdit listener for our popup-editing-grid as follow:
this.beforeEditHandler = function (e) {
var isDirty = dataSourceIsDirty();
if (isDirty) {
...
e.preventDefault();
}
}
When dirty grid-items exist, the edit-popup should not appear. This works fine when trying to edit a row, the popup is not being shown. However, when we try to create a new dataItem, the popup does not appear also, but a new empty row is being added to the grid (see attachment).
Any idea of how to prevent the grid to insert an empty row?
Thanks.