Hi:
I have a problem with Smart gwt, using a Grid embeded in a popup box (Dialog class). The thing is that the CellClick and FieldClick events, are not being fired by SmartGWT. Here is the code:
Record record = event.getRecord();
winModal = new Dialog();
membersEditBox = new DepartmentMembersEditBox(DepartmentMgmtViewImpl.this);
membersEditBox.initialize(record);
winModal.setTitle("");
winModal.centerInPage();
winModal.setAutoSize(true);
winModal.addItem(membersEditBox);
winModal.show();
winModal.addCloseClickHandler(new CloseClickHandler(){
@Override
public void onCloseClick(CloseClientEvent event) {
clearPopUp();
}
});
…
membersEditBox is the Composite wich contains the grid. I add a grid event like this:
ListGridField gridFieldDelete = this.addGridField(fieldDelete, 70);
gridFieldDelete.addRecordClickHandler(new RecordClickHandler(){
@Override
public void onRecordClick(final RecordClickEvent event) {
deleteActions(event.getRecord());
}
});
The event is fired if I add the grid into a non popup window. I really dont know what could be the problem, since the event is not being fired at all.
Thanks in advance.