This question is locked. New answers and comments are not allowed.
Hi,
My _Layout.cshtml has a splitter (Razor).
I put a Partial View in a Pane but not working.
Below the code ..
_Layout.cshtml
@{Html.Telerik().Splitter().Name("Splitter")
.Orientation(SplitterOrientation.Horizontal)
.Panes(hPanes =>
{
hPanes.Add()
.Size("200px")
.MinSize("100px")
.MaxSize("300px")
.Collapsible(true)
.Scrollable(false)
.Content(() =>
{
Html.Telerik().Splitter()
.Name("NestedSplitter")
.HtmlAttributes(new { style = "height: 100%; border: 0;" })
.Orientation(SplitterOrientation.Vertical)
.Panes(vPanes =>
{
vPanes.Add()
.Content(() =>
{
@Html.Partial("_MenuLateral"); // <<<---- Don't Work
});
vPanes.Add()
.Size("70px")
.MinSize("60px")
.MaxSize("150px")
.Content("<p style='text-align: center; padding: .5em;'>Select a view from the list above.</p>");
})
.Render();
});
hPanes.Add()
.Scrollable(false)
.Content(() =>
{
@RenderBody();
});
})
.Render();
}
Partial View (_MenuLateral.cshtml)
---------------
@(
Html.Telerik().PanelBar()
.Name("PanelBar")
.HighlightPath(true)
.Items(item =>
{
item.Add()
.Text("Sistema")
.ImageHtmlAttributes(new { alt = "Sistema" })
.Items(subItem =>
{
subItem.Add()
.Text("Sobre")
.Action("Grid", "Elemento", new { id = "05.1"});
subItem.Add()
.Text("Trocar Usuário")
.Action("Grid", "Elemento", new { id = "03.1" });
}
)
}
)
.ExpandMode(0)
)
What's wrong?
tks
Paulo
My _Layout.cshtml has a splitter (Razor).
I put a Partial View in a Pane but not working.
Below the code ..
_Layout.cshtml
@{Html.Telerik().Splitter().Name("Splitter")
.Orientation(SplitterOrientation.Horizontal)
.Panes(hPanes =>
{
hPanes.Add()
.Size("200px")
.MinSize("100px")
.MaxSize("300px")
.Collapsible(true)
.Scrollable(false)
.Content(() =>
{
Html.Telerik().Splitter()
.Name("NestedSplitter")
.HtmlAttributes(new { style = "height: 100%; border: 0;" })
.Orientation(SplitterOrientation.Vertical)
.Panes(vPanes =>
{
vPanes.Add()
.Content(() =>
{
@Html.Partial("_MenuLateral"); // <<<---- Don't Work
});
vPanes.Add()
.Size("70px")
.MinSize("60px")
.MaxSize("150px")
.Content("<p style='text-align: center; padding: .5em;'>Select a view from the list above.</p>");
})
.Render();
});
hPanes.Add()
.Scrollable(false)
.Content(() =>
{
@RenderBody();
});
})
.Render();
}
Partial View (_MenuLateral.cshtml)
---------------
@(
Html.Telerik().PanelBar()
.Name("PanelBar")
.HighlightPath(true)
.Items(item =>
{
item.Add()
.Text("Sistema")
.ImageHtmlAttributes(new { alt = "Sistema" })
.Items(subItem =>
{
subItem.Add()
.Text("Sobre")
.Action("Grid", "Elemento", new { id = "05.1"});
subItem.Add()
.Text("Trocar Usuário")
.Action("Grid", "Elemento", new { id = "03.1" });
}
)
}
)
.ExpandMode(0)
)
What's wrong?
tks
Paulo