The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
YGYavanaarasi 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
JLJulie LevyFebruary 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
YGYavanaarasi 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.