Get SfMenu collapsed state

Hello,

I have a side menu like this:

<SfMenu CssClass="dock-menu" TValue="MenuItem" Orientation="Orientation.Vertical">
...
</SfMenu>

Is there a way to know if menu is collapsed (only icons are visible) or expanded (icons+text)?

Is there a way to avoid collapse/expand using mouse drag (only hamburger buttom on top)?

Thank you,

Roberto


1 Reply

JS Janakiraman Sakthivel Syncfusion Team February 2, 2022 04:04 PM UTC

Hi ROBERTO, 
  
We suspect your requirement is matched with the Sidebar component. So, by using the Sidebar component, you can achieve your requirement. Therefore, before we proceed further, please refer to the below sample. And get back to us with more details if we misunderstood your requirement or if you need any further assistance on this. Based on that, we will check and provide you with a better solution quickly. 
 
 
Regards, 
Janakiraman S. 


Loader.
Up arrow icon