Skip to main content

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.

public class dxCalendar : dxBase

Constructors​

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

Instance member dxCalendar(options)​

Constructs a new instance of the dxCalendar class.

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

Implements​