1. #1
    Sencha User
    Join Date
    Oct 2013
    Posts
    7
    Vote Rating
    0
    giamak is on a distinguished road

      0  

    Default Grid and HeaderDoubleClickEvent

    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
    vtortsev is on a distinguished road

      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.

Thread Participants: 1

Tags for this Thread