Skip to main content

dxDateBox

Namespace: Wisej.Web.Ext.DevExtreme

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

The DateBox is a widget that displays a date and time in a specified format, and enables a user to pick or type in the required date/time value.

public class dxDateBox : dxBase

Constructors​

Instance member dxDateBox()​

Constructs a new instance of the dxDateBox class.

Example:

The following example creates a date and time editor with a custom display format.

var dateBox = new dxDateBox();
dateBox.Options.type = "datetime";
dateBox.Options.value = "2026-05-15T09:30:00";
dateBox.Options.displayFormat = "dd/MM/yyyy HH:mm";
dateBox.Size = new Size(220, 36);
this.Controls.Add(dateBox);

Instance member dxDateBox(options)​

Constructs a new instance of the dxDateBox class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a date picker that does not accept dates before the start of the year.

var dateBox = new dxDateBox(new
{
type = "date",
value = "2026-05-15",
min = "2026-01-01",
showClearButton = true
});
dateBox.Size = new Size(220, 36);
this.Controls.Add(dateBox);

Implements​