Results 1 to 3 of 3

Thread: MouseOutEvent from Grid?

  1. #1
    Sencha User Bear_On_Fire's Avatar
    Join Date
    Feb 2014
    Location
    Ukraine, Kiev
    Posts
    7
    Answers
    1

    Default MouseOutEvent from Grid?

    Need to catch MouseOutEvent when mouse leaves grid. Tried this:
    PHP Code:
    grid.addHandler(new MouseOutHandler() {
        @
    Override
        
    public void onMouseOut(MouseOutEvent event) {
            ...
        }
    }, 
    MouseOutEvent.getType()); 
    but it fires on every cell in grid. Any help ?

  2. #2
    Sencha Premium User
    Join Date
    Nov 2008
    Location
    Vienna - Austria
    Posts
    888
    Answers
    10

    Default

    Have you tried to add the handler to the grid's parent container?

  3. #3
    Sencha User Bear_On_Fire's Avatar
    Join Date
    Feb 2014
    Location
    Ukraine, Kiev
    Posts
    7
    Answers
    1

    Default

    Quote Originally Posted by micgala View Post
    Have you tried to add the handler to the grid's parent container?
    It's not really good idea because in parent container can be something else.

    I've solved my problem with jQuery via JSNI:
    PHP Code:
    private native void addMouseLeaveHandler(Element element/*-{    
        $wnd.$(element).mouseleave(function(){    
             ....      
      });  
      }-*/


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •