-
7 Nov 2012 3:39 PM #11
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.
-
7 Nov 2012 3:44 PM #12
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) } }, ...
-
7 Nov 2012 3:51 PM #13
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.
-
7 Nov 2012 4:00 PM #14
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!
-
7 Nov 2012 4:06 PM #15
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); } });
-
8 Nov 2012 5:59 AM #16
evant,
I am sad, because I have no way to high five you.
-
19 Dec 2012 1:01 PM #17
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?


Reply With Quote