Results 1 to 4 of 4

Thread: How to get parent container of a menu

  1. #1
    Ext User trojan's Avatar
    Join Date
    Dec 2008
    Posts
    55
    Vote Rating
    0
      0  

    Question How to get parent container of a menu

    Hi,

    I have a menu inside another menu which again reside inside another menu (3 level). Now i want to get the component in which any particular menu resides.

    Menu 1
    Menu 1.1
    Menu 1.1.1
    Menu 1.1.2
    Menu 1.2
    Menu 1.2.1
    Menu 2
    Menu 2.1

    Now if i click on menu 1.2.1 then i want to get Menu 1.2 and then Menu 1

    But I could not find any way of doing this.
    ------------------
    Shahzad Fateh Ali

  2. #2
    Ext User trojan's Avatar
    Join Date
    Dec 2008
    Posts
    55
    Vote Rating
    0
      0  

    Arrow Is there any one?

    Is there anyone to reply this thread?
    ------------------
    Shahzad Fateh Ali

  3. #3
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    118
      0  

    Default

    Use:
    Code:
    var parent = item.parentMenu.parentMenu.items.get(item.parentMenu.id);

  4. #4
    Sencha User
    Join Date
    Jun 2011
    Posts
    8
    Vote Rating
    0
      0  

    Default I need the container of the menu

    For instance I put a menu inside a panel named "test" and now when the menu is clicked I want to change something in the panel test. If this were a button inside the panel, I coud do btn.up("test") to give me the panel however menu.up("panel") is undefined.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •