Calendar
Namespace: Wisej.Web.Ext.Syncfusion2
Assembly: Wisej.Web.Ext.Syncfusion2 (4.1.0.0)
The Calendar is a graphical user interface component which provides the multi-view representation to display and select a date. Also, provide options to navigate in different levels of views like month, year, decade.
- C#
- VB.NET
public class Calendar : ej2Base
Public Class Calendar
Inherits ej2Base
Constructors
Calendar()
Constructs a new instance of the Calendar class.
Example:
The following example creates a calendar and selects a date through the Options object.
var calendar = new Calendar();
calendar.Options.value = new DateTime(2024, 5, 15);
calendar.Options.weekNumber = true;
this.Controls.Add(calendar);
Calendar(options)
Constructs a new instance of the Calendar class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates a calendar that starts the week on Monday and limits the selectable dates.
var calendar = new Calendar(new
{
value = DateTime.Today,
min = DateTime.Today.AddMonths(-1),
max = DateTime.Today.AddMonths(6),
firstDayOfWeek = 1
});
this.Controls.Add(calendar);