SmartClient Version: v11.0p_2017-02-11/PowerEdition Deployment (built 2017-02-11)
I have a listgrid where i am editing and entering new records. In case user enters the same value for some field say field1, i display a error message and cancel the event. Code as below:
grid.addRowEditorExitHandler(new RowEditorExitHandler() {
@Override
public void onRowEditorExit(RowEditorExitEvent event) {
Map valuesMap = event.getNewValues();
fieldName = (String) valuesMap.get("fieldName");
if(fieldName1.equals("dummy")){
SC.say("Invalid value");
event.cancel();
}
}
});
But, now when the user changes anything in the same field and clicks outside the grid, the RowEditorExitHandler is not fired. It is fired only if i click on some other column and then click outside.
Please help.
I have a listgrid where i am editing and entering new records. In case user enters the same value for some field say field1, i display a error message and cancel the event. Code as below:
grid.addRowEditorExitHandler(new RowEditorExitHandler() {
@Override
public void onRowEditorExit(RowEditorExitEvent event) {
Map valuesMap = event.getNewValues();
fieldName = (String) valuesMap.get("fieldName");
if(fieldName1.equals("dummy")){
SC.say("Invalid value");
event.cancel();
}
}
});
But, now when the user changes anything in the same field and clicks outside the grid, the RowEditorExitHandler is not fired. It is fired only if i click on some other column and then click outside.
Please help.
Comment