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

Defines the fluent API for configuring the Kendo UI DatePicker for ASP.NET MVC events.

Definition

Constructors

Initializes a new instance of the DatePickerEventBuilder class.

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

The DatePicker event handlers.

Methods

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

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

The handler code wrapped in a text tag.

Returns:

DatePickerEventBuilder

Returns the current instance of DatePickerEventBuilder .

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

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

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

Returns:

DatePickerEventBuilder

Returns the current instance of DatePickerEventBuilder .

Defines the handler of the Close client-side event. Fires when the calendar is closed

C#
public DatePickerEventBuilder Close(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

DatePickerEventBuilder

Returns the current instance of DatePickerEventBuilder .

Defines the handler of the Close client-side event. Fires when the calendar is closed

C#
public DatePickerEventBuilder Close(string handler)
Parameters:handlerstring

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

Returns:

DatePickerEventBuilder

Returns the current instance of DatePickerEventBuilder .

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the DatePicker is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

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

The handler code wrapped in a text tag.

Returns:

DatePickerEventBuilder

Returns the current instance of DatePickerEventBuilder .

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the DatePicker is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public DatePickerEventBuilder KendoKeydown(string handler)
Parameters:handlerstring

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

Returns:

DatePickerEventBuilder

Returns the current instance of DatePickerEventBuilder .

Defines the handler of the Open client-side event. Fires when the calendar is opened

C#
public DatePickerEventBuilder Open(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

DatePickerEventBuilder

Returns the current instance of DatePickerEventBuilder .

Defines the handler of the Open client-side event. Fires when the calendar is opened

C#
public DatePickerEventBuilder Open(string handler)
Parameters:handlerstring

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

Returns:

DatePickerEventBuilder

Returns the current instance of DatePickerEventBuilder .