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

Defines the fluent interface for configuring Calendar client-side events.

Definition

Constructors

C#
public CalendarEventBuilder(IDictionary<string, object> events)
Parameters:eventsIDictionary<string, object>

Methods

Defines the handler of the Change client-side event. Fires when the selected date is changed.

C#
public CalendarEventBuilder Change(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag (Razor syntax).

Returns:

CalendarEventBuilder

Example:
C#
@( Html.Kendo().Calendar()
.Name("calendar")
.Events(events =&gt; events.Change(
@&lt;text&gt;
function(e) {
// Handle the Change event inline.
}
&lt;/text&gt;
))
)

Defines the handler of the Change client-side event. Fires when the selected date is changed.

C#
public CalendarEventBuilder Change(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the event.

Returns:

CalendarEventBuilder

Example:
C#
@( Html.Kendo().Calendar()
.Name("calendar")
.Events(events =&gt; events.Change("onChange"))
)

Defines the inline handler of the KendoKeydown client-side event

C#
public virtual CalendarEventBuilder KendoKeydown(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag (Razor syntax).

Returns:

CalendarEventBuilder

Defines the name of the JavaScript function that will handle the KendoKeydown client-side event.

C#
public virtual CalendarEventBuilder KendoKeydown(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the event.

Returns:

CalendarEventBuilder

Defines the handler of the Navigate client-side event. Fires when the Calendar navigates.

C#
public CalendarEventBuilder Navigate(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag (Razor syntax).

Returns:

CalendarEventBuilder

Example:
C#
@( Html.Kendo().Calendar()
.Name("calendar")
.Events(events =&gt; events.Navigate(
@&lt;text&gt;
function(e) {
// Handle the Navigate event inline.
}
&lt;/text&gt;
))
)

Defines the handler of the Navigate client-side event. Fires when the Calendar navigates.

C#
public CalendarEventBuilder Navigate(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the event.

Returns:

CalendarEventBuilder

Example:
C#
@( Html.Kendo().Calendar()
.Name("calendar")
.Events(events =&gt; events.Navigate("onNavigate"))
)