Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Set sidebar state from mvc controller : mvc core2 #4204


User avatar
0
rvanwoezik created

Is it possible to toggle the sidebar from mvc controller? Certain pages i want the sidebar be closed when opening. Do i need to add a ViewBag property to the layout? or is it already build in?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @rvanwoezik,

    Currently, on the selectedMenuItem's parent must be opened. I think you need to add another ViewBag property and handle it on the layout as you like.