Results 1 to 2 of 2

Thread: Grid and HeaderDoubleClickEvent

  1. #1
    Sencha User
    Join Date
    Oct 2013
    Posts
    7
    Vote Rating
    0
      0  

    Default Grid and HeaderDoubleClickEvent

    I use GXT 3.0.1 and I have a grid with the sort on columns by single click.
    I want to add double click to show an AlertMessageBox,
    but the event is not fired.
    Where am I wrong?
    Thanks in advance



    Code:
    grid.addHeaderDoubleClickHandler(new HeaderDoubleClickHandler() {
    
           public void onHeaderDoubleClick(HeaderDoubleClickEvent event) {
                    Log.debug("Header Double Click"); 
                                    final AlertMessageBox d = new AlertMessageBox("Selected",                        "Column: \n" + event.getColumnIndex());
                    d.addHideHandler(new HideEvent.HideHandler() {
                        public void onHide(HideEvent event) {
                            d.hide();
                        }
                    });
                    d.show();
           }
    }

  2. #2
    Sencha User
    Join Date
    Jul 2011
    Posts
    2
    Vote Rating
    0
      0  

    Default

    Having same issue on 3.0.6. Handler not triggered. I'm observing that in ColumnHeader.Header class in onBrowserEvent(Event) we are not receiving Event.ONDBLCLICK after double click on header.

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
  •