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

Kendo UI ButtonGroup component

Definition

Constructors

Initializes a new instance of the ButtonGroup class.

C#
public ButtonGroup(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

Defines if the widget is initially enabled or disabled. By default, it is enabled.

C#
public bool? Enable { get; set; }

Sets a value controlling how the color is applied.

C#
public ButtonFillMode? FillMode { get; set; }

Defines the initially selected Button (zero based index).

C#
public double? Index { get; set; }

ItemAction member.

C#
public Action<ButtonGroupItem> ItemAction { get; set; }

A JavaScript array that contains the ButtonGroup's items configuration.

C#
public List<ButtonGroupItem> Items { get; set; }

Sets a value controlling the border radius.

C#
public Rounded? Rounded { 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..

C#
public string Selection { get; set; }

Sets the size of the component.

C#
public ComponentSize? Size { get; set; }

Sets the color of the component according to the applied theme.

C#
public ThemeColor? ThemeColor { get; set; }

Methods

Serializes the component settings to a dictionary.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

A dictionary of settings.

Overrides: WidgetBase.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML content.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

The text writer.

Overrides: WidgetBase.WriteHtml(TextWriter)

WriteInitializationScript method.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteInitializationScript(TextWriter)