c# - Treeview (nested dropdown) menu is not expanded on page reload bootstrap mvc4 -
i'm trying implement treeview menu in application , works fine except once click on item in expanded list, reloaded page loads contracted list, makes navigation difficult users. causing this? html.actionlink in code? code menu below. please explain can done here. in advance.
<li class="treeview"> <a href="#"> <span>leave management</span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li class="@html.isactive("leave", "index")">@html.actionlink("my leave information", "index", "leave")</li> <li class="@html.isactive("leave", "newleaverequest")">@html.actionlink("new leave request", "newleaverequest", "leave")</li> <li class="@html.isactive("leave", "approve")">@html.actionlink("approvals", "approve", "leave")</li> <li class="@html.isactive("leave", "empleaveinfo")">@html.actionlink("employee leave information", "empleaveinfo", "leave")</li> </ul> </li>
<div class="container"> <div class="row"> <div class="col-sm-3"> <nav> <ul class="nav"> <li><a href="#">home</a></li> <li> <a href="#" id="btn-1" data-toggle="collapse" data-target="#submenu1" aria-expanded="false">leave management</a> <ul class="nav collapse" id="submenu1" role="menu" aria-labelledby="btn-1"> <li>@html.actionlink("my leave information", "index", "leave")</li> <li>@html.actionlink("new leave request", "newleaverequest", "leave")</li> <li>@html.actionlink("approvals", "approve", "leave")</li> <li>@html.actionlink("employee leave information", "empleaveinfo", "leave")</li> </ul> </li> </ul> </nav> </div> </div> </div>
Comments
Post a Comment