New to Telerik UI for ASP.NET MVC? Download free 30-day trial

Items

The Telerik UI for ASP.NET MVC SplitButton provides a various set of options for its Items.

The following example demonstrates how to configure the SplitButton items.

    @(Html.Kendo().SplitButton()
        .Name("splitButton")
        .Icon("paste")
        .Items(items =>
        {
            items.Add().Id("keep-text").Text("Keep Text Only").Icon("paste-plain-text");
            items.Add().Id("paste-html").Text("Paste as HTML").Icon("paste-as-html").Hidden(true);
            items.Add().Id("paste-markdown").Text("Paste Markdown").Icon("paste-markdown").Enabled(false);
            items.Add().Id("favourite").Text("Mark As Favourite").ImageUrl(Url.Content("~/content/shared/icons/16/star.png"));
        })
    )

See Also

In this article