Welcome Guest Search | Active Topics | Sign In | Register

Suppress eo:Menu expand using ClientSideOnGroupExpand Options
ixthnar
Posted: Wednesday, June 9, 2010 11:32:45 AM
Rank: Advanced Member
Groups: Member

Joined: 11/15/2008
Posts: 44
(using version 2009.0.75)
I was sure this worked at one time but it does not work now. In eo:Menu include
ClientSideOnGroupExpand=on_expand
where
function EOMenuTest_OnExpand(e, eventInfo) {
eventInfo.cancel(); // or eo_CancelEvent();
return false;
}
to suppress sub-menu expand. It does not work ... the sub-menus expand anyway. I'd be glad to post code; however, this is easy to reproduce;

The essential question is "How do I prevent the expansion of sub-menus?"

Thanks,
Chris
eo_support
Posted: Wednesday, June 9, 2010 2:17:54 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
Hi,

I do not believe this is possible or ever worked the way you described. If you wish to prevent a sub menu to expand, you can disable that item or hide all sub menu items. Note this must be done before ClientSideOnGroupExpand. By the time ClientSideOnGroupExpand is called it's already too late.

Thanks!
ixthnar
Posted: Wednesday, June 9, 2010 3:34:57 PM
Rank: Advanced Member
Groups: Member

Joined: 11/15/2008
Posts: 44
Thanks! Actually, the expand can be prevented during OnGroupExpand by setting the item's subgroup items to visible=false.
eo_support
Posted: Wednesday, June 9, 2010 3:39:09 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
Nice find!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.