View Full Version : Clear validation after row in RowEditor grid is deleted

8 Sep 2009, 7:24 AM
I am using a grid with a RowEditor that is very similar to the one on the examples page. I set a couple of the editor fields to be required and added a button which will delete the selected row. The problem that I am having is that if a row that is failing validation is deleted then the field.isValue() continues to return false.

This is the code for my delete button:

Button deleteButton = new Button("Delete Selected", new SelectionListener<ButtonEvent>(){
public void componentSelected(ButtonEvent ce) {
BeanModel model = grid.getSelectionModel().getSelectedItem();
if (model != null) {