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

Separator ToolBar Command Type

The Separator can act as a delimiter between the ToolBar commands.

The following example demonstrates how to define a Separator.

    @(Html.Kendo().ToolBar()
        .Name("ToolBar")
        .Items(items =>
        {
            items.Add().Type(CommandType.Button).Text("Button 1");
            items.Add().Type(CommandType.Separator);
            items.Add().Type(CommandType.Button).Text("Button 2");
        })
    )
    <kendo-toolbar name="ToolBar">
        <toolbar-items>
            <item type="CommandType.Button" text="Button1"></item>
            <item type="CommandType.Separator"></item>
            <item type="CommandType.Button" text="Button2"></item>
        </toolbar-items>
    </kendo-toolbar>

See Also

In this article