Items
The Telerik UI for ASP.NET MVC DropDownButton provides a various set of options for its Items
.
The following example demonstrates how to configure the DropDownButton items.
@(Html.Kendo().DropDownButton()
.Name("DropDownButton")
.Icon("clipboard")
.Items(items =>
{
items.Add().Id("keep-text").Text("Keep Text Only").Icon("clipboard-text");
items.Add().Id("paste-html").Text("Paste as HTML").Icon("clipboard-code").Hidden(true);
items.Add().Id("paste-markdown").Text("Paste Markdown").Icon("clipboard-markdown").Enabled(false);
items.Add().Id("favorite").Text("Mark As Favorite").ImageUrl(Url.Content("~/content/shared/icons/16/star.png"));
})
)