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

OnMonthSelected

The OnMonthSelected client-side event handler is called immediately after a user select a month cell in the MonthYearView.

The event handler receives two arguments:

  1. the RadMonthYearPicker object that fired the event.

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

NameReturn TypeArgumentsDescription
get_newDate()Date objectReturns the new value of the control as a Date object.
get_oldDate()Date objectReturns the old value of the control as a Date object.
get_selectedCell()HTML elementReturns the DOM element for the cell that was clicked.

The following example uses the OnMonthSelected event to display the previous and the new selected month:

ASPNET
<telerik:RadMonthYearPicker RenderMode="Lightweight" ID="RadMonthYearPicker1" runat="server">
    <ClientEvents OnMonthSelected="onMonthSelected"  />
</telerik:RadMonthYearPicker>	

See Also

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