Feb 16, 2013, 4:41 PM
[CLOSED] Menu item - clicked row record
Hello,
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?
Thanks.
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?
Thanks.
Last edited by Daniil; Feb 21, 2013 at 3:50 AM.
Reason: [CLOSED]