Hi.
I want to know how to make a field required and does not have an empty value.
I have tries "required:true" on field, I have tried "nullable:false", I have also tried :
this.gridObj.on('cancelCellEdit',(args) => {
if(args.source.selectedRecord.data.rowcode === "" || !args.source.selectedRecord.data.rowcode) {
return false;
}
})
this.gridObj.on('beforeFinishCellEdit',(args) => {
if(args.source.selectedRecord.data.rowcode === "" || !args.source.selectedRecord.data.rowcode) {
return false;
}
})
But it does not work, when the user hits the "enter" button and the value of "rowcode" is empty it accepts it.
Thank you for helping