New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the fluent API for configuring CalendarMessagesSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class CalendarMessagesSettingsBuilder

Inheritance: objectCalendarMessagesSettingsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public CalendarMessagesSettingsBuilder(CalendarMessagesSettings container)
Parameters:containerCalendarMessagesSettings

Properties

C#
protected CalendarMessagesSettings Container { get; }

Methods

Allows customization of the "Navigate to" text that would be used for the "title" attribute of the Calendar's header. The label is also a button allowing navigation to parent view.

C#
public CalendarMessagesSettingsBuilder NavigateTo(string value)
Parameters:valuestring

The value that sets the message text.

Returns:

CalendarMessagesSettingsBuilder

Example:
C#
@(Html.Kendo().Calendar()
.Name("calendar")
.Messages(msg => msg.NavigateTo("Go to"))
)

Allows customization of the names of the views used in the "title" attribute of the Calendar. The label is also a button allowing navigation to parent view.

C#
public CalendarMessagesSettingsBuilder ParentViews(Action<CalendarMessagesParentViewsSettingsBuilder> configurator)
Parameters:configuratorAction<CalendarMessagesParentViewsSettingsBuilder>

The configurator for the names of the parent views.

Returns:

CalendarMessagesSettingsBuilder

Example:
C#
@(Html.Kendo().Calendar()
.Name("calendar")
.Messages(msg =&gt; msg.ParentViews(pv =&gt; pv.Month("year view").Year("decade view").Decade("century view")))
)

Allows customization of the week column header text. Set the value to make the widget compliant with web accessibility standards.

C#
public CalendarMessagesSettingsBuilder WeekColumnHeader(string value)
Parameters:valuestring

The value for WeekColumnHeader

Returns:

CalendarMessagesSettingsBuilder

Example:
C#
@( Html.Kendo().Calendar()
.Name("calendar")
.WeekNumber(true)
.Messages(m =&gt; m.WeekColumnHeader("W"))
)