Hi,
I’m using smartGWT 1.7.0 in chrome, FF browser.
I have a ListGrid with I can edit “on-the fly” and I added a ExitEditorHandler, it fires when I finish the edit). But I can get in any method the value changed, I only get the old value (the original). I tried to get the value from the event, and directly from grid, and there’s no wat. I have to call or implement another handler?
This is the code:
gridExit.addEditorExitHandler(gridExitHandler);
com.smartgwt.client.widgets.grid.events.EditorExitHandler crucesGridExitHandler = new com.smartgwt.client.widgets.grid.events.EditorExitHandler() {
public void onEditorExit(EditorExitEvent event) {
// I get the grid
ListGrid listGrid = (ListGrid) crucesView.getComponent("crucesGrid");
// A test
if (listGrid.hasChanges()) {
listGrid.refreshCell(event.getRowNum(), event.getColNum());
listGrid.refreshRow(event.getRowNum());
}
// Get values from event (i also tried from listgrid)
String codigo = event.getRecord().getAttribute("codigo");
String id = event.getRecord().getAttribute("id");
String nombre = event.getRecord().getAttribute("nombre");
}
};