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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How To Create SideBar With Expanding/Collapsing Menu

Thread ID:

Created:

Updated:

Platform:

Replies:

145119 Jun 7,2019 10:27 AM UTC Jun 10,2019 12:45 PM UTC ASP.NET Core - EJ 2 3
loading
Tags: Sidebar
danacon
Asked On June 7, 2019 10:27 AM UTC

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


Ashokkumar Balasubramanian [Syncfusion]
Replied On 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. 


danacon
Replied On June 10, 2019 12:34 PM UTC

Hi Ashokkumar,

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

Ashokkumar Balasubramanian [Syncfusion]
Replied On 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. 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon