Skip to main content

CalendarSettings Class

Contains the Calendar extension settings.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v23.1.dll

NuGet Package: DevExpress.Web.Mvc5


public class CalendarSettings :


To declare the Calendar in a View, invoke the ExtensionsFactory.Calendar helper method. This method returns the Calendar extension that is implemented by the CalendarExtension class.

To configure the Calendar extension, pass the CalendarSettings object to the ExtensionsFactory.Calendar helper method as a parameter. The CalendarSettings object contains all the Calendar extension settings.

Refer to the Calendar Overview topic to learn how to add the Calendar extension to your project.

To access the Calendar specific settings, refer to the CalendarSettings.Properties property.

@Html.DevExpress().Calendar(settings => {
    settings.Name = "calendar1";
    settings.SelectedDate = new DateTime(2010, 11, 22);

The code result is demonstrated in the image below.



See Also