How do I initialize the sidebar inside the _layout.cshtml?

I can not understand how to initialize the sidebar inside the _layout.cshtml in a mvc project
Can you help me?
Thanks for your support.
Barbara Inzitari

5 Replies

SA Shameer Ali Baig Sulaiman Ali Baig Syncfusion Team June 14, 2018 09:28 AM UTC

Hi Inzitari, 

Thanks for contacting Syncfusion Support. 

We have checked your query. Sidebar can be initialized in the _Layout.cshtml page of an ASP.NET MVC project. To meet your requirement, we have prepared a sample application by initializing the Sidebar in the _Layout.cshtml page. In the sample, the sidebar will be available and kept in open state in every view page of the project. The sample can be downloaded from the below link.  


Please, check out the below links to know more about EJ2 Sidebar 


 
Please, let us know if you need any further assistance. 

Regards, 

Shameer Ali Baig S.


NI nimue June 14, 2018 04:00 PM UTC

Hi Shameer
thanks for your help.
Now I understand how to do it.
I ask you something else, I saw that in the documentation related to the Docking Sidebar for images (Home -Settings etc ..) is used:

#dockSidebar .home :: before {
         content: '\ e7a4';
     }

     #dockSidebar .profile :: before {
         content: '\ e7d4';
     }

     #dockSidebar .info :: before {
         content: '\ e7e7';
     }

     #dockSidebar .settings :: before {
         content: '\ e7cf';
     }

Where I find I can find the codes for other images such as exit - graphs etc
Thank you.
Barbara Inzitari


PK Prem Kumar Madhan Raj Syncfusion Team June 15, 2018 04:57 AM UTC

Hi Inzitari  
  
Thanks for the update.   
  
We have our own collection of icons for our components. Please check the attached link to know about all available icons.   
  
  
Please note that we need to use prefix class e-icon before icon name displayed below each icon to make use of these icons.   
  
Regards,   

Prem Kumar M
  



NI nimue June 15, 2018 06:44 AM UTC

Hi Prem
Tank you for your support.
Best Regards 
Barbara Inzitari


PK Prem Kumar Madhan Raj Syncfusion Team June 18, 2018 05:29 AM UTC

Hi Inzitari,    
   
Most welcome .Please let us know if you need further assistance. 
 
Regards, 
 
Prem Kumar M 


Loader.
Up arrow icon