Skip to main content
A newer version of this page is available. .

CalendarSettings Class

Contains the Calendar extension settings.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v20.2.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public class CalendarSettings :
    EditorSettings

Remarks

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);
}).GetHtml()

The code result is demonstrated in the image below.

calendar-declaration.png

Inheritance

See Also