SegmentedButtons
Namespace: Wisej.Web.Ext.MobiScroll
Assembly: Wisej.Web.Ext.MobiScroll (4.1.0.0)
Displays a group of MobiScroll segmented buttons that work like a set of radio buttons.
- C#
- VB.NET
public class SegmentedButtons : MSWidgetBase
Public Class SegmentedButtons
Inherits MSWidgetBase
The client script of this widget renders a fixed group of four buttons (Day, Week, Month and Year, with Year selected) enhanced by MobiScroll, and doesn't use the Options.
Constructors
SegmentedButtons()
Constructs a new instance of the SegmentedButtons class.
Example:
The following example adds the segmented buttons at the top of a form.
var buttons = new SegmentedButtons();
buttons.Dock = DockStyle.Top;
buttons.Height = 48;
this.Controls.Add(buttons);
SegmentedButtons(options)
Constructs a new instance of the SegmentedButtons class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
The options are passed to the init function of the client script, which currently ignores them.
Example:
The following example creates the segmented buttons with an options object and places them in a panel.
var buttons = new SegmentedButtons(new { theme = "ios" });
buttons.Dock = DockStyle.Fill;
this.panelRange.Controls.Add(buttons);