1. #11
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,062
    Vote Rating
    215
    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 slemmon has much to be proud of

      0  

    Default


    Oh, I see the cellcontextmenu event now when I capture on the grid's view and not just the grid. Thx for pointing that out - will come in handy.

    Looking forward to cellcontextmenu promotion to the panel.Table and that headercontextmenu event.

    Thanks again for listening to the community. This sort of dialog on top of the excellent JS framework is why I'll always lobby for my company to license with Sencha.

  2. #12
    Sencha Premium Member Zdeno's Avatar
    Join Date
    Nov 2009
    Location
    Prague
    Posts
    536
    Vote Rating
    32
    Zdeno has a spectacular aura about Zdeno has a spectacular aura about

      0  

    Default


    As Evant wrote:

    Code:
    ...
    viewConfig : {
        onBeforeCellContextMenu : function(htmlCelEl, colId, record, htmlRowEl, rowId, e) {
            console.log(htmlCelEl, colId, record, htmlRowEl, rowId, eg)
        },
        onCellContextMenu : function(htmlCelEl, colId, record, htmlRowEl, rowId, e) {
            console.log(htmlCelEl, colId, record, htmlRowEl, rowId, eg)
        }
    },
    ...

  3. #13
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,062
    Vote Rating
    215
    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 slemmon has much to be proud of

      0  

    Default


    I've got the events being listened for on the controller instead of being coded into the view's onEvent methods, but definitely nice to know they're there.

  4. #14
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,146
    Vote Rating
    673
    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


    Ok, just finished up my changes.

    The beforecell<foo> and cell<foo> events are now documented on the view and are relayed up to the table.

    I also added headercontextmenu, with the header click/triggerclick/contextmenu events being relayed to the grid.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  5. #15
    Sencha Premium Member Zdeno's Avatar
    Join Date
    Nov 2009
    Location
    Prague
    Posts
    536
    Vote Rating
    32
    Zdeno has a spectacular aura about Zdeno has a spectacular aura about

      0  

    Default


    Just finished simple plugin

    Code:
    Ext.define('Ext.ux.grid.HeaderContextMenu', {
        alias : 'plugin.headercontextmenu',
        mixins : {
            observable : 'Ext.util.Observable'
        },
    
        init : function(grid) {
            this.gridPanel = grid;
            this.headerCt = grid.headerCt;
            this.headerCt.addEvents('contextmenu');
            this.gridPanel.addEvents('headercontextmenu');
    
            this.mon(this.headerCt, {
                scope : this,
                afterlayout : this.onAfterLayout,
                single : true
            });
        },
    
        onAfterLayout : function() {
            this.mon(this.headerCt.el, {
                scope : this,
                contextmenu : this.onContextMenu,
                delegate : 'div.x-column-header'
            });
        },
    
        onContextMenu : function(event, target) {
            var me = this,
            column = this.headerCt.getChildByElement(target);
    
            event.preventDefault();
    
            this.gridPanel.fireEvent('headercontextmenu', this.gridPanel, column.getIndex(), column, event, target);
        }
    });

  6. #16
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,062
    Vote Rating
    215
    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 slemmon has much to be proud of

      0  

    Default


    evant,
    I am sad, because I have no way to high five you.

  7. #17
    Sencha User
    Join Date
    Dec 2007
    Posts
    41
    Vote Rating
    1
    PaulyWolly is on a distinguished road

      0  

    Default Does anyone knwo if it is possible to add a combobox, to the cellcontextmenu?

    Does anyone knwo if it is possible to add a combobox, to the cellcontextmenu?


    Does anyone know if it is possible to add a a combo box as a selection within a cellcontextmenu?