Hi,
I am trying to use Panelbar as a Side bar navigation (something like Outlook).
I have the Model this way.
public class NavbarMainMenuModel
{
public int Dept_id { get; set; }
public int Seq_no { get; set; }
public string Dept_name { get; set; }
public List<
NavbarMenuItem
> Items { get; set; }
}
public class NavbarMenuItem
{
public int Menu_item_id { get; set; }
public int Seq_no { get; set; }
public int Dept_id { get; set; }
public string MenuName { get; set; }
}
Now, I want to load the Panel bar with this data.
Currently, I have this code and it only display the top level items but not the children.
<
div
id
=
"responsive-panel"
style
=
"width:200px;"
>
@(Html.Kendo().PanelBar()
.Name("panelbar")
.ExpandAll(false)
.ExpandMode(PanelBarExpandMode.Multiple)
.DataTextField("Dept_name")
.DataSource(ds=>ds
.Read(read=>read.Action("GetMainMenuItems","Home"))
)
.Events(e=>e
.Select("panelbarselected")
)
)
</
div
>
How do I get the Main list and sub items display on the PanelBar?
Also, i need to display them in the right sequence (if possible).
Thanks,
Arun