Skip to main content

kendoSlider

Namespace: Wisej.Web.Ext.Kendo

Assembly: Wisej.Web.Ext.Kendo (4.1.0.0)

The Slider provides a rich input for selecting numeric values.

public class kendoSlider : kendoBase

Constructors​

Instance member kendoSlider()​

Constructs a new instance of the kendoSlider class.

Example:

The following example creates a slider and sets its range and value through the Options property.

var slider = new kendoSlider();
slider.Options.min = 0;
slider.Options.max = 100;
slider.Options.value = 40;
slider.Size = new Size(300, 40);
this.Controls.Add(slider);

Instance member kendoSlider(options)​

Constructs a new instance of the kendoSlider class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a slider without buttons and handles the change event on the server.

var slider = new kendoSlider(new
{
min = 0,
max = 10,
smallStep = 1,
largeStep = 5,
showButtons = false,
tickPlacement = "bottomRight"
});
slider.Instance.onChange += new WidgetEventHandler((s, e) =>
{
AlertBox.Show("Value: " + e.Data.value);
});
slider.Size = new Size(300, 40);
this.Controls.Add(slider);

Implements​