I have the following code in a partial view.
C#<div class="leftPanel">
@Html.DevExpress().TreeView(settings => {
settings.Name = "LeftNavBar";
settings.EnableAnimation = true;
settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
}).BindToXML(HttpContext.Current.Server.MapPath("~/App_Data/SideMenu.xml"), "/menu/*").GetHtml()
</div>
My xml is as follows.
XML<?xml version="1.0" encoding="utf-8" ?>
<menu>
<group Text="Administration" ImageUrl="/Content/Images/FolderIcon.png">
<item Text="Role Management" NavigateUrl="/Account/ListRoles" />
</group>
<group Text="Reporting" ImageUrl="/Content/Images/FolderIcon.png">
<item Text="List Reports" NavigateUrl="/Report/ListReports" />
</group>
</menu>
If I use "/Report/ListReports" in the NavigateUrl I get a button for that node. If I put anything else, I get a standard format node. Any help would be appreciated.
Actually, I just realized this is the behavior when you are on the page that is listed in the menu. This is the control's way of highlighting that menu option. What is the best way to just highlight the text itself instead (aka just change the color on hover?)