Summary description for MonthYearPickerClientEvents. See Client Events for more information.
Definition
Namespace:Telerik.Web.UI.Calendar
Assembly:Telerik.Web.UI.dll
Syntax:
[TypeConverter(typeof(ExpandableObjectConverter))]
public class MonthYearPickerClientEvents : ObjectWithState
Inheritance: objectObjectWithStateMonthYearPickerClientEvents
Inherited Members
Constructors
MonthYearPickerClientEvents constructor. See Client Events for more information.
public MonthYearPickerClientEvents(StateBag OwnerStateBag, RadMonthYearPicker owner)
Fields
Owner RadMonthYearPicker control
[SuppressMessage("Microsoft.Design", "CA1051:DoNotDeclareVisibleInstanceFields")]
public RadMonthYearPicker owner
Properties
Gets or sets the name of the client-side event handler that is executed whenever the selected month of the picker is changed.
public string OnMonthSelected { get; set; }
The name of the client-side event handler that is executed whenever the selected month of the picker is changed.
Gets or sets the name of the client-side event handler that is executed prior to closing the calendar popup.
public string OnPopupClosing { get; set; }
There can be some conditions you do want not to close the calendar popup on click over it. Then you should cancel the event either by return false; or set its argument args.CancelClose = true;
<script type="text/javascript">
function Closing(sender, args)
{
args.CancelClose = true;
//or
return false;
}
</script>
<radCln:RadDatePicker ID="RadDatePicker1" runat="server">
<ClientEvents OnPopupClosing="Closing"/>
</radCln:RadDatePicker>
Gets or sets the name of the client-side event handler that is executed prior to opening the calendar popup and its synchronizing with the DateInput value.
public string OnPopupOpening { get; set; }
There can be some conditions you do want not to open the calendar popup on click of the popup button. Then you should cancel the event either by return false; or set its argument args.CancelOpen = true;
<script type="text/javascript">
function Opening(sender, args)
{
args.CancelOpen = true;
//or
return false;
}
</script>
<radCln:RadDatePicker ID="RadDatePicker1" runat="server">
<ClientEvents OnPopupOpening="Opening"/>
</radCln:RadDatePicker>Set the args.CancelSynchronize = true; to override the default DatePicker behavior of synchronizing the date in the DateInput and Calendar controls. This is useful for focusing the Calendar control on a date different from the DateInput one.
<script type="text/javascript">
function Opening(sender, args)
{
args.CancelCalendarSynchronize = true;
sender.Calendar.NavigateToDate([2006,12,19]);
}
</script>
<radCln:RadDatePicker ID="RadDatePicker1" runat="server" >
<ClientEvents OnPopupOpening="Opening"/>
</radCln:RadDatePicker>
Gets or sets the name of the client-side event handler that is executed whenever the years view is changed.
public string OnViewChanged { get; set; }
The name of the client-side event handler that is executed whenever the years view is changed.
Gets or sets the name of the client-side event handler that is executed whenever the selected year of the picker is changed.
public string OnYearSelected { get; set; }
The name of the client-side event handler that is executed whenever the selected year of the picker is changed.