View Full Version : [CLOSED] Menu item - clicked row record

Feb 16, 2013, 4:41 PM

I am using ItemContextMenu Handler of a grid panel to show the context menu items. The handler already has "record" as parameter. The problem is that I could not find how to access record from the MenuItem of the Context Menu.

#{RowContextMenu}.dataRecord or item.parentMenu.dataRecord used to work in Ext.net v1.x as I understood form the previous posts. What is the replacement for v1.x dataRecord property of ContextMenu in v2? Should I use "App.theGrid.getSelectionModel().getSelection()[0]"? So in this case can we be sure that the row for which context menu was fired is also selected by default?


Feb 17, 2013, 2:39 AM

Maybe, I misunderstand you, but try the following approach should work for Ext.NET 2.x too: http://forums.ext.net/showthread.php?17535-CLOSED-Code-example-for-GridPanel-context-menu/page2