Rank: Newbie Groups: Member
Joined: 6/28/2007 Posts: 6
|
I asked you previously: How can i collapse a slide menu item that is expanded, with javascript?
and you tell me: var menu = eo_GetObject(“SlideMenu1”);
var menuItem = menu.getTopGroup().getItemByIndex(0);
if (menuItem.getSelected())
menuItem.click();
But i have the SingleExpand=true (and i need that) and this code doesn't work until i change this property to false.... I need to collapse all the slide menu items
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi Marcela,
As mentioned in the previous reply, you must have SingleExpand to False for that to work. The reason is when SingleExpand is true, it's impossible to collpase the last expanded pane, either by javascript or user code.
Thanks
|