現在、ASP mvc サイト全体をナビゲートするために使用されている DevExpress の TreeView を使用しています。
ただし、docsxml
を読むと、特にファイルからデータをバインドしているときに、実際のナビゲーションへの参照が見つからないようです。
じぶんのContentLeftPartialView
<div class="leftPanel">
@* DXCOMMENT: Configure the left panel's treeview *@
@Html.DevExpress().TreeView(settings => {
settings.Name = "LeftTreeView";
}).BindToXML(HttpContext.Current.Server.MapPath("~/App_Data/SideMenu.xml"), "/menu/*").GetHtml()
</div>
私の存在の基本xml
で
<?xml version="1.0" encoding="utf-8" ?>
<menu>
<group Text="Graphics">
<item Text="General Overview" />
</group>
<group Text="Reports">
<item Text="Report Manager" />
<item Text="Product Delivery Report" />
<item Text="Inventory Report" />
<item Text="Stock Report" />
</group>
<group Text="Stocks">
<item Text="stock 1" />
<item Text="stock 2" />
</group>
<group Text="Systems">
<item Text="system 1" />
<item Text="system 2" />
</group>
<group Text="Lock Interface">
</group>
<group Text="Settings">
</group>
</menu>
Web サイト全体をナビゲートできるように /etcを配置する場所について完全に迷ってActionLinks
います (このパネルはすべてのページで持続します)。
DevExpress の HTML 5/MVC を使って正しい方向に向ける経験をした人はいますか?
私は別のプロジェクトがこれを使用したことを知っています:
public ActionResult Products()
{
ViewBag.Message = "Your Products page.";
return View();
}
ただし、次のようなリンクを使用しているだけです。
<li>@Html.ActionLink("Products", "Index", "Products")</li>
部分ビューの DevExpress のツリービューでは、これは起こらないと思います。