1. #1
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,470
    Vote Rating
    202
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default Extjs 4 roadmoap question: cellcontextmenu / headercontextmenu

    Extjs 4 roadmoap question: cellcontextmenu / headercontextmenu


    It looks like in 4.1.1a that there is not a cellcontextmenu or headercontextmenu event. Does anyone know if those events are on the 4.x roadmap?

    Or perhaps if those events are, indeed, exposed in 4.1.1a and maybe I just overlooked them?

  2. #2

  3. #3
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,470
    Vote Rating
    202
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    Cell click and cell double-click
    cellclick / celldblclick
    made it to Ext 4 from 3.x, but cellcontextmenu never did.

    I'm needing a different menu depending on whether I right-clicked on column 1 -vs- column 2. In 3.x cellcontextmenu gave you as one of the params in the listener the call/column index.

    Can't remember if there was a headercontextmenu option in 3.x, but there is headerclick in 4.x - hoping for headercontextmenu as well.

  4. #4
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,470
    Vote Rating
    202
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    *bump

    I'm hunting for a cellcentextmenu event in 4.1.1 or beyond. Any word on how to do this and if it's on the roadmap?

    In 3.4 I was able to use:
    http://docs.sencha.com/ext-js/3-4/#!...ellcontextmenu

    4.1.x doesn't seem to have an equivalent event.

  5. #5
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,470
    Vote Rating
    202
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    *bump

    I'm seeing some notes from Animal on some changes coming through in 4.2. Any chance anyone can comment on the cellcontextmenu and headercontextmenu events for 4.2's roadmap?

  6. #6
    Sencha Premium Member
    Join Date
    Dec 2007
    Posts
    38
    Vote Rating
    2
    babsjr77 is on a distinguished road

      0  

    Default


    This worked for me, in the grid's itemcontextmenu listener:

    PHP Code:
    var view grid.getView();
    var 
    cellNode e.getTarget(view.cellSelector);
    var 
    header view.getHeaderByCell(cellNode);
    var 
    column _.indexOf(view.headerCt.getGridColumns(), header); 

  7. #7
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,470
    Vote Rating
    202
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    Thanks for the workaround. I might have eventually gotten the cell and cell header, but something tells me I'd never have gotten the column index.

    Anyone on the dev team know if this functionality will make it into the API in 4.2? I'm hoping since cellcontextclick was in 3.x and 4.x has cellclick and celldblclick that we'll get that last one, too, along with headercontextclick.

  8. #8
    Sencha - Community Support Team mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    2,761
    Vote Rating
    108
    mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all

      0  

    Default


    +1 for getting this in. Should be extremely easy to solve. And I'd propose aliasing the 'itemXXX' events to 'rowXXX', in tables we're dealing with rows and cells, not 'items'. This is how it was in Ext 3 too.

  9. #9
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,470
    Vote Rating
    202
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    At one point I put in a feature request and I believe Mitchell green lit it / sent a story. But, that was quite a number of minor releases back.

  10. #10
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,006
    Vote Rating
    650
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    cellcontextmenu already exists in 4.1.1, it's just not documented. It also needs to be relayed up to the panel.Table, but it's there.

    Adding header context menu is easy enough.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!