Hi,
I am using addEditorExitHandler on a ListGridField.
field.addEditorExitHandler(event -> {
event.getGrid().setEditValue(event.getRowNum(), "fieldName", "Value");
});
I do not want this code to be called for the filter editor. I tried adding a condition, that if event.getRowNum()!=0 , perform above step. But then in this case when i add a new row using startEditingNew() and if its rownum is also 0, this code does not execute.
Is there anyway i can differentiate if the handler is called from filter editor or grid row.
I am using addEditorExitHandler on a ListGridField.
field.addEditorExitHandler(event -> {
event.getGrid().setEditValue(event.getRowNum(), "fieldName", "Value");
});
I do not want this code to be called for the filter editor. I tried adding a condition, that if event.getRowNum()!=0 , perform above step. But then in this case when i add a new row using startEditingNew() and if its rownum is also 0, this code does not execute.
Is there anyway i can differentiate if the handler is called from filter editor or grid row.
Comment