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.
- C#
- VB.NET
public class DateRangePicker : ej2Base
Public Class DateRangePicker
Inherits ej2Base
Constructors
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);
DateRangePicker(options)
Constructs a new instance of the DateRangePicker class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial 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);