PDA

View Full Version : How to get the parentMenu?



icedtiger
12 May 2010, 6:25 PM
I have a three level Menu,
when i click the third level menuitem,
how can i get the first level menu?

i have tried
menuitem.findParentByType('menu').findParentByType('menu');
it returns null.

icedtiger
12 May 2010, 7:30 PM
ok.i have know the method by reading the Menu.js

there is a parentMenu property which is not listed in the apidoc

thanks

evant
12 May 2010, 10:10 PM
It's right here: http://www.extjs.com/deploy/dev/docs/?class=Ext.menu.Item&member=parentMenu

icedtiger
13 May 2010, 5:37 PM
I had thought it was in the Menu page.