We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How To Create SideBar With Expanding/Collapsing Menu

Hi,

I saw on the My Dashboard page in your website (https://www.syncfusion.com/account) that you have a sidebar with a menu that has expanding/collapsing top level menu items - is this something you can do in the asp.net core sidebar control? I have scoured the demo app, but the nearest I could find was the sidebar with the popout menu items (https://ej2.syncfusion.com/aspnetcore/Sidebar/SidebarMenu).

Thanks

Dan


3 Replies

AB Ashokkumar Balasubramanian Syncfusion Team June 10, 2019 11:56 AM UTC

Hi Danacon, 
 
Yes you can achieve a view just like - https://www.syncfusion.com/account using our EJ2 Sidebar and Menu control. After rendering the Menu control inside Sidebar, enable hamburgerMode and set orientation to “vertical“ for the Menu control to achieve your required view.  
 
<ejs-menu id="main-menubar" items="ViewBag.data" hamburgerMode="true" orientation="Vertical" showItemOnClick="true"></ejs-menu> 
 
After that, you can customize the styles for the Menu and Sidebar control as required. 
 
We have prepared a sample for your reference achieving your required view. Please find it below, 
 
 
Please let us know if you have any concerns. 
 
Regards, 
Ashokkumar B. 



DA danacon June 10, 2019 12:34 PM UTC

Hi Ashokkumar,

This is perfect, i had no idea it would be so easy! Many thanks :)


AB Ashokkumar Balasubramanian Syncfusion Team June 10, 2019 12:45 PM UTC

Hi Danacon, 
 
We are glad to know that the provided suggestion helped you to resolve the issue. Please let us know, if you need any further assistance. 
 
Regards, 
Ashokkumar B. 
 


Loader.
Up arrow icon