The requested page is not available for the requested platform. You are viewing the content for Default platform.

CalendarSettings Class

Contains the Calendar extension settings.

Namespace: DevExpress.Web.Mvc

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

Declaration

public class CalendarSettings :
    EditorSettings
Public Class CalendarSettings
    Inherits 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.

View code (Razor):

@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