<h1>
    TreeView with Context Menu
</h1>
<p>
    The TreeView below has a custom context menu.
    Right-click the tree to see it:
</p>

<!-- this is the tree -->
@Html.C1().TreeView().Id("theTree").DisplayMemberPath("header").ChildItemsPath("items")

<!-- this is the context menu -->
@(Html.C1().Menu().Id("theMenu")
    .CssStyle("display", "none")
    .MenuItems(items =>
    {
        items.Add().Header("Option 1");
        items.Add().Header("Option 2");
        items.AddSeparator();
        items.Add().Header("Option 3");
        items.Add().Header("Option 4");
    })
)