Skip to main content

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.

public class SegmentedButtons : 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​

Instance member 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);

Instance member SegmentedButtons(options)​

Constructs a new instance of the SegmentedButtons class.

NameTypeDescription
optionsObjectInitial 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);

Implements​