Hi all, I need your help.

I have a DataGrid with a single Selection model. 
Listening to CellPreviewEvent in order to handle click event on an icon on 
second column.
Works fine with Firefox & Chrome, but not on IE. (tried IE 10 & 9).

Seems that CellPreviewEvent is not fired unless the icon you clicked is the 
icon on the currently selected row...

Here is the code snippet...

DataGrid<MyObject> table = new DataGrid.....
SingleSelectionModel<MyObject> selectionModel = new 
SingleSelectionModel<MyObject>();
...
table.addCellPreviewHandler(new CellPreviewEvent.Handler<MyObject>() {

@Override
public void onCellPreview(CellPreviewEvent<MyObject> event) {
if("click".equals(event.getNativeEvent().getType())) {
Window.alert("Click");
if(event.getColumn() == 1)  {
//Do stuff....
} //End click second column
 } //End click event 
}
});

Did anybody else encounter this problem? Is there another way? 


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to