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

DateTimePickerEventBuilder

Methods

Change(System.String)

Triggered when the underlying value of a DateTimePicker is changed.

For more information see Change event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().DateTimePicker()
                       .Name("DatePicker")
                       .Events(events => events.Change("onChange"))
            )

Change(System.Func)

Triggered when the underlying value of a DateTimePicker is changed.

For more information see Change event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


            @(Html.Kendo().DateTimePicker()
                       .Name("DatePicker")
                       .Events(events => events
                         .Change(@<text>
                             function(ev) {
                                 //event handling code
                             }
                         </text>)
                       )          
            )

Close(System.String)

Fires when the calendar or the time drop-down list is closed

For more information see Close event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().DateTimePicker()
                       .Name("DatePicker")
                       .Events(events => events.Close("onClose"))
            )

Close(System.Func)

Fires when the calendar or the time drop-down list is closed

For more information see Close event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


            @(Html.Kendo().DateTimePicker()
                       .Name("DatePicker")
                       .Events(events => events
                         .Close(@<text>
                             function(ev) {
                                 //event handling code
                             }
                         </text>)
                       )          
            )

Open(System.String)

Fires when the calendar or the time drop-down list is opened

For more information see Open event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().DateTimePicker()
                       .Name("DatePicker")
                       .Events(events => events.Open("onOpen"))
            )

Open(System.Func)

Fires when the calendar or the time drop-down list is opened

For more information see Open event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


            @(Html.Kendo().DateTimePicker()
                       .Name("DatePicker")
                       .Events(events => events
                         .Open(@<text>
                             function(ev) {
                                 //event handling code
                             }
                         </text>)
                       )          
            )

In this article
Not finding the help you need?