Edit this page

Server-Side API

Defining min and max dates:

Old

Html.Telerik().DatePicker().Name("DatePicker").MinDate(DateTime.Now)
Html.Telerik().DatePicker().Name("DatePicker").MaxDate(DateTime.Now)

New

Html.Kendo().DatePicker().Name("DatePicker").Min(DateTime.Now)
Html.Kendo().DatePicker().Name("DatePicker").Max(DateTime.Now)

Footer:

Old

Html.Telerik().DatePicker().Name("DatePicker").TodayButton(“d”)

New

Html.Kendo().DatePicker().Name("DatePicker").Footer(“#= kendo.toString(data, ‘MM/dd/yyyy’)”)

howButton and ButtonTitle:

Old

Html.Telerik().DatePicker().Name("DatePicker").ButtonTitle(“choose date”)
Html.Telerik().DatePicker().Name("DatePicker").ShowButton(false)

New

Not Supported

OpenOnFocus:

Old

Html.Telerik().DatePicker().Name("DatePicker").OpenOnFocus(true)

New

Not Supported

Set DateTime.MinValue and show nothing:

Old

Html.Telerik().DatePicker().Name("DatePicker").Value(DateTime.MinValue)

New

Html.Kendo().DatePicker().Name("DatePicker").Value(value == DateTime.MinValue ? null : value)

Client-Side API

Events

All events no longer have the “On” prefix.

All widgets no longer have the OnLoad event. Please use $(document).ready() instead.

Disable

Old

var datePicker = $("#DatePicker").data("tDatePicker");
datePicker.disable();

New

var datePicker = $("#datepicker").data("kendoDatePicker");
datePicker.enable(false);

Copyright © 2002-2015 Telerik Inc. All rights reserved.