-
2 May 2011 3:08 AM #1
contextmenu replaced with itemcontextmenu Listener?
contextmenu replaced with itemcontextmenu Listener?
Looking at the Feed Viewer sample in Ext 4 release. The contextual menu doesn't work.
Seems that the listener 'contextmenu' is replaced with 'itemcontextmenu'.
Modifying the file 'FeedPanel.js' is required to get contextual menu working.
CHANGE:
Code:listeners: { scope: this, contextmenu: this.onContextMenu },Code:onContextMenu: function(view, index, el, event){ var menu = this.menu; event.stopEvent(); menu.activeFeed = view.store.getAt(index); menu.showAt(event.getXY()); },
TO:
Code:listeners: { scope: this, itemcontextmenu: this.onContextMenu },
Code:onContextMenu: function(view, rec, node, index, event){ var menu = this.menu; event.stopEvent(); menu.activeFeed = view.store.getAt(index); menu.showAt(event.getXY()); },
Similar Threads
-
is plugin replaced by mixin in ExtJS 4?
By yyjia in forum Ext: DiscussionReplies: 3Last Post: 23 Mar 2012, 11:06 AM -
[CLOSED][B3] Cell Selection Model doesn't fire itemclick or itemcontextmenu event
By stevil in forum Ext:BugsReplies: 2Last Post: 19 Apr 2011, 2:51 PM -
newbie question : contextmenu listener of dataView is not fired
By flamant in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 12 Apr 2011, 7:36 AM -
Add a 'contextmenu' listener on a form fields' Label.
By 29er in forum Ext 3.x: Help & DiscussionReplies: 5Last Post: 24 Jan 2011, 8:25 AM -
Preventing browser contextmenu on ext contextmenu
By Tewr in forum Ext 3.x: Help & DiscussionReplies: 4Last Post: 14 Apr 2010, 11:44 AM


Reply With Quote