-
28 Jan 2009 11:25 PM #1
How to get parent container of a menu
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
-
4 Feb 2009 10:38 PM #2
Is there any one?
Is there any one?
Is there anyone to reply this thread?
------------------
Shahzad Fateh Ali
-
5 Feb 2009 1:01 AM #3Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 44
Use:
Code:var parent = item.parentMenu.parentMenu.items.get(item.parentMenu.id);
-
27 Sep 2011 11:48 AM #4
I need the container of the menu
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.


Reply With Quote