The only option to do this is to use the beginEdit event.
In the handler, you have access to the currently edited row or cell.
Having an access to it, you can determine whether to cancel the editing or not.
If you want to cancel it invoke the ‘cancelEdit’ method.

Here is an example of the following behaviour: https://codepen.io/svetoslavjqwidgets/pen/mdGqOrX

I hope this helps resolve the problem!

Best Regards,
Svetoslav Borislavov

Smart UI Team