How to get parent menuItem when click menuItem?

  1. #1

    How to get parent menuItem when click menuItem?

    Hi everyone:
    I am writing a ext menu right now, menu's item also contain a menu...
    Now when I clicking the inner MenuItem(leaf item), How could I get it's parent Menu's item
    Attached Thumbnails Click image for larger version. 

Name:	menu.png 
Views:	145 
Size:	3.5 KB 
ID:	2209  
  2. #2
    Hi,

    Try this
    item.ownerCt.ownerCt
  3. #3
    Quote Originally Posted by Vladimir View Post
    Hi,

    Try this
    item.ownerCt.ownerCt
    Thank Vladimir, it's work well. The difference between ownerCt and parentMenu is ownerCt gets a item, but parentMenu get the menu

Similar Threads

  1. How to find the URL on click of menuitem
    By krishna in forum 1.x Help
    Replies: 1
    Last Post: Mar 31, 2011, 6:27 AM
  2. MenuItem Click event is not working
    By krishna in forum 1.x Help
    Replies: 1
    Last Post: Mar 31, 2011, 5:36 AM
  3. How to find the URL on click of menuitem
    By krishna in forum 1.x Help
    Replies: 1
    Last Post: Mar 31, 2011, 5:29 AM
  4. [CLOSED] Execute click-listener on MenuItem
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 22, 2011, 10:47 AM
  5. [CLOSED] [1.0] MenuItem Click DirectEvent
    By methode in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Nov 18, 2009, 10:41 AM

Tags for this Thread

Posting Permissions