ButtonGroup
Kendo UI ButtonGroup component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class ButtonGroup : WidgetBase, IHtmlAttributesContainer
Inheritance: objectWidgetBaseButtonGroup
Implements:
Inherited Members
Constructors
Initializes a new instance of the ButtonGroup class.
Properties
Defines if the widget is initially enabled or disabled. By default, it is enabled.
public bool? Enable { get; set; }
Sets a value controlling how the color is applied.
public ButtonFillMode? FillMode { get; set; }
Defines the initially selected Button (zero based index).
public double? Index { get; set; }
ItemAction member.
public Action<ButtonGroupItem> ItemAction { get; set; }
A JavaScript array that contains the ButtonGroup's items configuration.
public List<ButtonGroupItem> Items { get; set; }
Defines the selection type. Allows the following values: single (default): allows only a single button to be the currently selected in the group.; multiple: allows multiple buttons to be selected in the group at the same time. or none: does not allow selection. ButtonGroups acts as a group of clickable Buttons..
public string Selection { get; set; }
Sets the size of the component.
public ComponentSize? Size { get; set; }
Sets the color of the component according to the applied theme.
public ThemeColor? ThemeColor { get; set; }
Methods
Serializes the component settings to a dictionary.
public override IDictionary<string, object> Serialize()
A dictionary of settings.
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML content.
protected override void WriteHtml(TextWriter writer)
The text writer.
Overrides:
WriteInitializationScript method.
public override void WriteInitializationScript(TextWriter writer)
Overrides: