kendoDatePicker
Namespace: Wisej.Web.Ext.Kendo
Assembly: Wisej.Web.Ext.Kendo (4.1.0.0)
The DatePicker enables the user to select a date from a calendar or through a direct input.
- C#
- VB.NET
public class kendoDatePicker : kendoBase
Public Class kendoDatePicker
Inherits kendoBase
Constructors
kendoDatePicker()
Constructs a new instance of the kendoDatePicker class.
Example:
The following example creates a date picker, sets its date and changes the display format through the Options property.
var picker = new kendoDatePicker();
picker.Value = new DateTime(2025, 6, 15);
picker.Options.format = "yyyy-MM-dd";
picker.Width = 200;
this.Controls.Add(picker);
kendoDatePicker(options)
Constructs a new instance of the kendoDatePicker class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates a date picker that accepts only dates in the year 2025.
var picker = new kendoDatePicker(new
{
format = "dd/MM/yyyy",
min = new DateTime(2025, 1, 1),
max = new DateTime(2025, 12, 31),
weekNumber = true
});
picker.Width = 200;
this.Controls.Add(picker);
Properties
Text
String: Not relevant for this class. (Default: "")
Value
DateTime: Gets or sets the value of the kendoDatePicker.