New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

OnDateSelected

The OnDateSelected client-side event handler is called immediately after the value of the control's selection has changed.

The OnDateSelected event is supported by: RadCalendar , RadDatePicker , RadTimePicker , and RadDateTimePicker .

The event handler receives two arguments:

  1. the object that fired the event.

  2. an event arguments object that exposes the following methods:

NameReturn TypeArgumentsDescription
get_oldValue()stringReturns the old value of the control, formatted as a string.
get_newValue()stringReturns the new value of the control, formatted as a string
get_oldDate()Date objectReturns the old value of the control as a Date object.
get_newDate()Date objectReturns the new value of the control as a Date object.
ASPNET
<telerik:RadDatePicker RenderMode="Lightweight" ID="RadDatePicker1" runat="server">
    <ClientEvents OnDateSelected="dateSelected" />
</telerik:RadDatePicker>		

See Also

In this article
See Also
Not finding the help you need?
Contact Support