Hello,
I'm using Kendo Menu
<script>
function onSelected(e) { }
</script>
<div class="k-rtl" >
<%= Html.Kendo().Menu()
.Name("Menu").Events(ev=>ev.Select("onSelected"))
.Items(items =>
{
items.Add()
.Text("menu1")
.Items(children =>
{
children.Add().Text("Sub Item 1");
children.Add().Text("Sub Item 2");
children.Add().Text("Sub Item 3");
children.Add().Text("Sub Item 4");
children.Add().Text("Sub Item 5");
});
items.Add()
.Text("menu2")
.Items(children =>
{
children.Add().Text("Sub Item 1");
children.Add().Text("Sub Item 2");
children.Add().Text("Sub Item 3");
children.Add().Text("Sub Item 4");
children.Add().Text("Sub Item 5");
});
})
%>
</div>
<div id="contentFrame">
<%--<% Html.RenderPartial("~/Views/Ascx/WizardControl.ascx"); %>--%>
</div>
The view is under master page
I need to load partial view (ascx) dynamically into the div (contentFrame) depending on the selected menu item.
How can I perform this?
Thank you in advance
Shabby
I'm using Kendo Menu
<script>
function onSelected(e) { }
</script>
<div class="k-rtl" >
<%= Html.Kendo().Menu()
.Name("Menu").Events(ev=>ev.Select("onSelected"))
.Items(items =>
{
items.Add()
.Text("menu1")
.Items(children =>
{
children.Add().Text("Sub Item 1");
children.Add().Text("Sub Item 2");
children.Add().Text("Sub Item 3");
children.Add().Text("Sub Item 4");
children.Add().Text("Sub Item 5");
});
items.Add()
.Text("menu2")
.Items(children =>
{
children.Add().Text("Sub Item 1");
children.Add().Text("Sub Item 2");
children.Add().Text("Sub Item 3");
children.Add().Text("Sub Item 4");
children.Add().Text("Sub Item 5");
});
})
%>
</div>
<div id="contentFrame">
<%--<% Html.RenderPartial("~/Views/Ascx/WizardControl.ascx"); %>--%>
</div>
The view is under master page
I need to load partial view (ascx) dynamically into the div (contentFrame) depending on the selected menu item.
How can I perform this?
Thank you in advance
Shabby