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

Events

You can subscribe to the Open, Close, and Change DateRangePicker events and further customize the functionality of the component.

For a complete example on basic DateRangePicker events, refer to the demo on using the events of the DateRangePicker.

Handling Events by Handler Name

The following example demonstrates how to subscribe to events by a handler name.

    @(Html.Kendo().DateRangePicker()
      .Name("daterangepicker")
      .Events(e => e
            .Open("daterangepicker_open")
            .Close("daterangepicker_close")
            .Change("daterangepicker_change")
      )
    )

    <script>
    function daterangepicker_open() {
        // Handle the open event.
    }

    function daterangepicker_close() {
        // Handle the close event.
    }

    function daterangepicker_change() {
        // Handle the change event.
    }
    </script>

Next Steps

See Also

In this article