SegmentedControl
Class
Kendo UI SegmentedControl component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
C#
public class SegmentedControl : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent
Inheritance: objectWidgetBaseSegmentedControl
Implements:
Inherited Members
Constructors
Initializes a new instance of the SegmentedControl class.
C#
public SegmentedControl(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
Properties
Configures whether the SegmentedControl will be enabled or disabled.
C#
public bool? Enabled { get; set; }
Configures the different buttons that will be rendered inside the SegmentedControl.
C#
public List<SegmentedControlItem> Items { get; set; }
Sets a value that will shape the layout mode of the SegmentedControl.
C#
public SegmentedButtonLayoutMode? LayoutMode { get; set; }
The selected value of the component. Must match the value of one of the items.
C#
public string SelectedValue { get; set; }
Sets the size of the component.
C#
public ComponentSize? Size { get; set; }
Methods
C#
public override IDictionary<string, object> Serialize()
Overrides:
Writes the HTML.
C#
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
C#
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: