Search code examples
gwtmouseeventgxt

MouseOutEvent from Sencha GXT Grid?


Need to catch MouseOutEvent when mouse leaves grid. Tried this:

grid.addHandler(new MouseOutHandler() {
    @Override
    public void onMouseOut(MouseOutEvent event) {
        ...
    }
}, MouseOutEvent.getType());

but it fires on every cell in grid. Any help ?


Solution

  • Solution came from jQuery via JSNI:

    private native void addMouseLeaveHandler(Element element) /*-{
            $wnd.$(element).mouseleave(function(){
                 ....
            });
        }-*/;