dxCalendar
Namespace: Wisej.Web.Ext.DevExtreme
Assembly: Wisej.Web.Ext.DevExtreme (4.1.0.0)
The Calendar is a widget that displays a calendar and allows an end user to select the required date within a specified date range.
- C#
- VB.NET
public class dxCalendar : dxBase
Public Class dxCalendar
Inherits dxBase
Constructors
dxCalendar()
Constructs a new instance of the dxCalendar class.
Example:
The following example creates a calendar, selects a date and shows the date picked by the user.
var calendar = new dxCalendar();
calendar.Options.value = "2026-05-15";
calendar.Options.firstDayOfWeek = 1;
calendar.Options.showTodayButton = true;
calendar.Instance.onValueChanged += new WidgetEventHandler((s, e) =>
{
AlertBox.Show($"Selected: {e.Data.value}");
});
this.Controls.Add(calendar);
dxCalendar(options)
Constructs a new instance of the dxCalendar class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates a calendar that limits the selection to the dates of one year.
var calendar = new dxCalendar(new
{
value = "2026-05-15",
min = "2026-01-01",
max = "2026-12-31",
zoomLevel = "month"
});
calendar.Location = new Point(20, 20);
this.Controls.Add(calendar);