CheckBoxGroup
Kendo UI CheckBoxGroup component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class CheckBoxGroup : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent, IFormEditor
Inheritance: objectWidgetBaseCheckBoxGroup
Implements:
Inherited Members
Constructors
Initializes a new instance of the CheckBoxGroup class.
public CheckBoxGroup(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
Properties
Sets the enabled state of all checkboxes in the CheckBoxGroup.
public bool? Enabled { get; set; }
The name attribute to be used for the checkbox inputs. If omitted, the id of the wrapper element will be used.
public string InputName { get; set; }
Sets a value controlling the border radius of the input.
public Rounded? InputRounded { get; set; }
Sets a value controlling the size of the input.
public ComponentSize? InputSize { get; set; }
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 List<CheckBoxGroupItem> Items { get; set; }
Specifies the label position according to its input for all items in the widget. Accepts "before" and "after".
public CheckBoxGroupLabelPosition? LabelPosition { get; set; }
Specifies whether the checkbox inputs will be rendered one below the other ("vertical") or on the same line ("horizontal").
public CheckBoxGroupLayout? Layout { get; set; }
The selected (checked) inputs values. Will also be used as a CheckBoxGroup widget value.
public IEnumerable<string> Value { get; set; }
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Implements:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: