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

Kendo.Mvc.UI.Fluent.CheckBoxGroupBuilder

Defines the fluent API for configuring the Kendo CheckBoxGroup for ASP.NET MVC.

Methods

Enabled(System.Boolean)

Sets the enabled state of all checkboxes in the CheckBoxGroup.

Parameters

value System.Boolean

The value that configures the enabled.

InputName(System.String)

The name attribute to be used for the checkbox inputs. If omitted, the id of the wrapper element will be used.

Parameters

value System.String

The value that configures the inputname.

Items(System.Action<Kendo.Mvc.UI.Fluent.CheckBoxGroupItemFactory>)

Array of items to be rendered as checkboxes in the CheckBoxGroup. If the array contains objects, their fields will be used for each checkbox configuration. If the array contains strings, those will be used as both value and label of the respective checkbox.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.CheckBoxGroupItemFactory>

The action that configures the items.

Layout(Kendo.Mvc.UI.CheckBoxGroupLayout)

Specifies whether the checkbox inputs will be rendered one below the other ("vertical") or on the same line ("horizontal").

Parameters

value Kendo.Mvc.UI.CheckBoxGroupLayout

The value that configures the layout.

LabelPosition(Kendo.Mvc.UI.CheckBoxGroupLabelPosition)

Specifies the label position according to its input for all items in the widget. Accepts "before" and "after".

Parameters

value Kendo.Mvc.UI.CheckBoxGroupLabelPosition

The value that configures the labelposition.

Layout(System.String)

Specifies whether the radio buttons will be rendered one below the other ("vertical") or on the same line ("horizontal").

Parameters

value System.String

The value that configures the layout.

LabelPosition(System.String)

Specifies the label position according to its radio button for all items in the widget. Accepts "before" and "after".

Parameters

value System.String

The value that configures the labelposition.

BindTo(System.String[])

Array of items to be rendered as radio buttons in the RadioGroup. The strings in the array will be used as both value and label of the respective radio button.

Parameters

configurator System.String[]

The action that configures the items.

BindTo(System.Collections.Generic.IList<Kendo.Mvc.UI.IInputGroupItem>)

Array of items to be rendered as radio buttons in the RadioGroup. If the array contains objects, their fields will be used for each radio button. If the array contains strings, those will be used as both value and label of the respective radio button.

Parameters

configurator System.Collections.Generic.IList<Kendo.Mvc.UI.IInputGroupItem>

The action that configures the items.

Value(System.Collections.Generic.IEnumerable<System.String>)

Array of strings to specify the widget value.

Parameters

configurator System.Collections.Generic.IEnumerable<System.String>

The action that configures the items.

Events(System.Action<Kendo.Mvc.UI.Fluent.CheckBoxGroupEventBuilder>)

Configures the client-side events.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.CheckBoxGroupEventBuilder>

The client events action.

Example (ASPX)

<%= Html.Kendo().CheckBoxGroup()
    .Name("CheckBoxGroup")
    .Events(events => events
        .Change("onChange")
    )
%>
In this article
Not finding the help you need?