Re: CellPreviewEvent & ie - event not firing...?

2013-07-18 Thread Aya
Well, the patch for issue GWT 7139 solved the problem.
This is the issue
http://code.google.com/p/google-web-toolkit/issues/detail?id=7139&can=4&colspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Stars

This is the link to the patch:
https://github.com/nmorel/gwt-issue7139/wiki

I've edited the patche's *.gwt.xml to use this solution for ie9 as well and 
it worked. 

In conclusion, this is what I understand: 
DataGrid on GWT 2.5.0, when using IE (9 or 10), does not catch click events 
(and all other kinds of events) unless you click on a row which is already 
selected. 

This problem can be solved by this patch
https://github.com/nmorel/gwt-issue7139/wiki 

-- 
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 google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




CellPreviewEvent & ie - event not firing...?

2013-07-16 Thread Aya
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 table = new DataGrid.
SingleSelectionModel selectionModel = new 
SingleSelectionModel();
...
table.addCellPreviewHandler(new CellPreviewEvent.Handler() {

@Override
public void onCellPreview(CellPreviewEvent 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 google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.