Prevent web menus from closing on click

Hi -
We use the "Expand On Hover" functionality for the web menus (ExpandOnClick is false). However, users sometimes click on the menu root to open it causing the menu to expand (from the hover) and then immediately close (from the click). Is there a way to prevent the menu from closing on click.
Thanks,
Julie


3 Replies

YG Yavanaarasi G Syncfusion Team February 4, 2008 01:23 PM UTC

Hi Julie,

Thank you for your interest in Syncfusion products.

Is there a way to prevent the menu from closing on click?

By default MenuItems get expanded on MouseOver event and collapsed on MouseOut event.

On setting the "ExpandOnClick" property to "True", the Menu items get expanded when clicked.

The property like "CollapseOnClick" which helps you to Collapse the MenuItem when an OnClick event is triggered, so that MenuItems get "Expand" and "Collapse" on simultaneous click event.

Regards,
G.Yavana




JL Julie Levy February 4, 2008 07:45 PM UTC

I'm not sure you are answering my question... i'll restate my question.

We have ExpandOnClick = false. If the user clicks on the menu root while the menu is open, the menu closes. Since we are not using clicks to activate the menu we do not want this behavior (collapse on click). Is there a way to prevent the menu from collapsing when the user clicks on it when ExpandOnClick = false?

Thanks,
Julie



YG Yavanaarasi G Syncfusion Team February 8, 2008 12:53 PM UTC

Hi Julie,

Sorry for the delay in responding.

Is there a way to prevent the menu from collapsing when the user clicks on it when ExpandOnClick = false?

We cannot achieve both the behaviour simultaneously. Sorry for the inconvenience caused.

Please let me know if you have any concerns.

Regards,
G.Yavana



Loader.
Up arrow icon