Hi
How do insert a DropDownList within a PanelBar?
I have the following code but it does not work:
I'm using version 2017.1.118
Thanks!
@(Html.Kendo().PanelBar()
.Name("panelForm")
.ExpandMode(PanelBarExpandMode.Single)
.Items(panelbar =>
{
panelbar.Add().Text("My Teammates")
.Expanded(true)
.Content(@<
text
>
@(Html.Kendo().DropDownList()
.Name("size")
.BindTo(new List<
string
>()
{
"S - 6 3/4\"",
"M - 7 1/4\"",
"L - 7 1/8\"",
"XL - 7 5/8\""
})
.HtmlAttributes(new { style = "width: 100%" })
.Deferred()
)
</
text
>);
})
.Deferred()
)