|
| 1 | +--- |
| 2 | +title: Telerik.Web.UI.Calendar.DateRangePickerClientEvents |
| 3 | +page_title: Telerik.Web.UI.Calendar.DateRangePickerClientEvents |
| 4 | +description: Telerik.Web.UI.Calendar.DateRangePickerClientEvents |
| 5 | +--- |
| 6 | + |
| 7 | +# Telerik.Web.UI.Calendar.DateRangePickerClientEvents |
| 8 | + |
| 9 | +Summary description for DatePickerClientEvents. |
| 10 | + See http://docs.telerik.com/devtools/aspnet-ajax/controls/daterangepicker/client-side-programming/events/overview.html Client Eventsfor more information. |
| 11 | + |
| 12 | +## Inheritance Hierarchy |
| 13 | + |
| 14 | +* System.Object |
| 15 | +* Telerik.Web.UI.ObjectWithState |
| 16 | +* Telerik.Web.UI.Calendar.DateRangePickerClientEvents |
| 17 | + |
| 18 | +## Properties |
| 19 | + |
| 20 | +### OnDateSelected `String` |
| 21 | + |
| 22 | +Gets or sets the name of the client-side event handler that is executed whenever |
| 23 | + the selected date of the datepicker is changed. |
| 24 | + |
| 25 | +### OnPopupClosing `String` |
| 26 | + |
| 27 | +Gets or sets the name of the client-side event handler that is executed prior to |
| 28 | + closing the calendar popup. |
| 29 | + |
| 30 | +#### Remarks |
| 31 | +There can be some conditions you do want not to close the calendar popup on |
| 32 | + click over it. Then you should cancel the event either by return false; or |
| 33 | + set its argument args.CancelClose = true; |
| 34 | + <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> |
| 35 | + |
| 36 | +### OnPopupOpening `String` |
| 37 | + |
| 38 | +Gets or sets the name of the client-side event handler that is executed prior to |
| 39 | + opening the calendar popup and its synchronizing with the DateInput value. |
| 40 | + |
| 41 | +#### Remarks |
| 42 | +There can be some conditions you do want not to open the calendar popup on |
| 43 | + click of the popup button. Then you should cancel the event either by return |
| 44 | + false; or set its argument args.CancelOpen = true; |
| 45 | + <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> |
| 46 | + Set the args.CancelSynchronize = true; to override the default |
| 47 | + DatePicker behavior of synchronizing the date in the DateInput and Calendar |
| 48 | + controls. This is useful for focusing the Calendar control on a date different from |
| 49 | + the DateInput one. |
| 50 | + <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> |
| 51 | + |
0 commit comments