CheckBoxGroupBuilder
Defines the fluent API for configuring the Kendo UI CheckBoxGroup
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class CheckBoxGroupBuilder : WidgetBuilderBase<CheckBoxGroup, CheckBoxGroupBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<CheckBoxGroup, CheckBoxGroupBuilder>CheckBoxGroupBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the CheckBoxGroupBuilder class.
Methods
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.
public CheckBoxGroupBuilder BindTo(IEnumerable<IInputGroupItem> values)
The action that configures the items.
Returns:Returns the current instance of CheckBoxGroupBuilder for method chaining.
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.
public CheckBoxGroupBuilder BindTo(string[] values)
The action that configures the items.
Returns:Returns the current instance of CheckBoxGroupBuilder for method chaining.
Sets the enabled state of all checkboxes in the CheckBoxGroup.
public CheckBoxGroupBuilder Enabled(bool value)
The value for Enabled
Returns:Returns the current CheckBoxGroupBuilder instance.
Configures the client-side events.
public CheckBoxGroupBuilder Events(Action<CheckBoxGroupEventBuilder> configurator)
The client events action.
Returns:Returns the current CheckBoxGroupBuilder instance.
The name attribute to be used for the checkbox inputs. If omitted, the id of the wrapper element will be used.
public CheckBoxGroupBuilder InputName(string value)
The value for InputName
Returns:Returns the current CheckBoxGroupBuilder instance.
Sets a value controlling the border radius of the input.
public CheckBoxGroupBuilder InputRounded(Rounded value)
The value for InputRounded
Returns:Returns the current CheckBoxGroupBuilder instance.
Sets a value controlling the size of the input.
public CheckBoxGroupBuilder InputSize(ComponentSize value)
The value for InputSize
Returns:Returns the current CheckBoxGroupBuilder instance.
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.
public CheckBoxGroupBuilder Items(Action<CheckBoxGroupItemFactory> configurator)
The CheckBoxGroupItemFactory for the items setting.
Returns:Returns the current instance of CheckBoxGroupBuilder .
Specifies the label position according to its input for all items in the widget. Accepts "before" and "after".
public CheckBoxGroupBuilder LabelPosition(CheckBoxGroupLabelPosition value)
The value for LabelPosition
Returns:Returns the current CheckBoxGroupBuilder instance.
Specifies the label position according to its radio button for all items in the widget. Accepts "before" and "after".
public CheckBoxGroupBuilder LabelPosition(string value)
The value that configures the labelposition.
Returns:Returns the current instance of CheckBoxGroupBuilder for method chaining.
Specifies whether the checkbox inputs will be rendered one below the other ("vertical") or on the same line ("horizontal").
public CheckBoxGroupBuilder Layout(CheckBoxGroupLayout value)
The value for Layout
Returns:Returns the current CheckBoxGroupBuilder instance.
Specifies whether the radio buttons will be rendered one below the other ("vertical") or on the same line ("horizontal").
public CheckBoxGroupBuilder Layout(string value)
The value that configures the layout.
Returns:Returns the current instance of CheckBoxGroupBuilder for method chaining.
Array of strings to specify the widget value.
public CheckBoxGroupBuilder Value(IEnumerable<string> value)
The array of values.
Returns:Returns the current instance of CheckBoxGroupBuilder for method chaining.