Hi.
I have a grid which is Grid<SomeModel>.
When I try to add a SelectionChangedListener to that grid's SelectionModel, then I have a ClassCastException.
This is the code I used for adding the listener:
Code:
grid.getSelectionModel().addSelectionChangedListener(new SelectionChangedListener<SomeModel>() {
@Override
public void selectionChanged(SelectionChangedEvent<SomeModel> se) {
//Will do stuff here
}
});
The exception occurs in the moment I select something in the grid.... but the Will do stuff here is not even called.... the error occurs before that....
Does anyone have any idea on what is the problem?
PS: The ClassCastException seems to happen in this gxt class:
java.lang.ClassCastException: com.extjs.gxt.ui.client.event.SelectionEvent
Thanks,
Michel.