|
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
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
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!
|
|
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.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Nice find!
|
|