Skip to main content

DateRangePicker

Namespace: Wisej.Web.Ext.Syncfusion2

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

DateRangePicker is an interactive component that allows the user to select a range from the calendar, or to set a range value.

public class DateRangePicker : ej2Base

Constructors​

Instance member DateRangePicker()​

Constructs a new instance of the DateRangePicker class.

Example:

The following example creates a date range picker and sets the initial range through the Options object.

var rangePicker = new DateRangePicker();
rangePicker.Options.placeholder = "Select a range";
rangePicker.Options.startDate = new DateTime(2024, 5, 1);
rangePicker.Options.endDate = new DateTime(2024, 5, 15);
this.Controls.Add(rangePicker);

Instance member DateRangePicker(options)​

Constructs a new instance of the DateRangePicker class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a date range picker that limits the length of the range that can be selected.

var rangePicker = new DateRangePicker(new
{
placeholder = "Booking period",
format = "dd/MM/yyyy",
min = DateTime.Today,
minDays = 2,
maxDays = 14
});
this.Controls.Add(rangePicker);

Implements​