Preventing the editing of next row when the current row is not satisfied

Hi,

In the data table, able to add the validation for the multiple columns. but, when the user clicks on cancel of the confirm window. Ideally it should not allow the user to proceed further unless the criteria is satisfied but here it’s allowing the user to go ahead to the next row.

Kindly suggest the suitable event to overcome this issue.

Thanks in advance,

Regards,
Kaleem

You can use onBeforeEditStop event handler.
Returning false from the handler will prevent switching to the next cell.

Tried the same but still it’s not working. Please have look of the code below:
onBeforeEditStop:function(values, editor){
if(editor.column == “title” && !values.value){
webix.confirm({
text:“Title is empty.
Do you want to save it anyway?”,
callback:webix.bind(function(res){
this.blockEvent();
if(res)
this.editStop();
else
editor.focus();
this.unblockEvent();
}, this)
});
return false;
}

Regards,
kaleem