I have datatable with editable column where users can enter only numbers from 1 to 100. To ensure this i have function attached to datatable on onAfterEditStop event and it works fine if user enters value in cell and press enter. But if user enters value and then clicks another cell - it won’t work, as if event not fired. How can I catch this clicking? Which event should I additionally catch?
function body:
onAfterEditStop: function(state) {
if(parseInt(state.value)>=100 || parseInt(state.value)<=0) {
this.getItem(this.getSelectedId()).part="";
this.refresh();
}
}