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

Layout

The CheckBoxGroup supports two types of layout - "horizontal" and "vertical". By default the checkboxes are rendered vertically.

The following example shows how to set the CheckBoxGroup layout:

    @(Html.Kendo().CheckBoxGroup()
        .Name("checkboxgroup")
        .BindTo(new[] { "English", "German", "Italian", "Russian", "Spanish" })
        .Layout("vertical")
        .Value(new string[] { "Italian" })
    )
    <kendo-checkboxgroup name="checkboxgroup"
        layout="CheckBoxGroupLayout.Horizontal">
        <kendo-checkboxgroup-item value="Green" css-class="green" label="Green"></kendo-checkboxgroup-item>
        <kendo-checkboxgroup-item value="Red" css-class="red" label="Red"></kendo-checkboxgroup-item>
        <kendo-checkboxgroup-item value="Blue" css-class="blue" label="Blue"></kendo-checkboxgroup-item>
    </kendo-checkboxgroup>

See Also

In this article