[CLOSED] Menu item - clicked row record

  1. #1

    [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.
    Last edited by Daniil; Feb 21, 2013 at 3:50 AM. Reason: [CLOSED]
  2. #2
    Hello!

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

Similar Threads

  1. Replies: 2
    Last Post: May 28, 2012, 1:54 PM
  2. Replies: 2
    Last Post: Apr 02, 2012, 7:48 AM
  3. [CLOSED] Menu not close and remain highlighted after clicked
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Oct 03, 2011, 5:50 AM
  4. [CLOSED] Always selected Item is nothing for combobox as menu item
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 04, 2011, 4:51 PM
  5. Replies: 2
    Last Post: Jan 07, 2010, 11:18 AM

Posting Permissions