@@ -33,10 +33,18 @@ Gets or sets the name of the client-side event handler that is executed prior to
33
33
34
34
#### Remarks
35
35
There can be some conditions you do want not to close the calendar popup on
36
- click over it. Then you should cancel the event either by return false; or
37
- set its argument args.CancelClose = true;
38
- <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 >
39
-
36
+ click over it. Then you should cancel the event either by return false; or
37
+ set its argument args.CancelClose = true;
38
+ ```` ASPX
39
+ <script type="text/javascript">
40
+ function Closing(sender, args){
41
+ args.CancelClose = true; //or return false;
42
+ }
43
+ </script>
44
+ <radCln:RadDatePicker ID="RadDatePicker1" runat="server">
45
+ <ClientEvents OnPopupClosing="Closing"/>
46
+ </radCln:RadDatePicker>
47
+ ````
40
48
### OnPopupOpening ` String `
41
49
42
50
Gets or sets the name of the client-side event handler that is executed prior to
@@ -46,12 +54,31 @@ Gets or sets the name of the client-side event handler that is executed prior to
46
54
There can be some conditions you do want not to open the calendar popup on
47
55
click of the popup button. Then you should cancel the event either by return
48
56
false; or set its argument args.CancelOpen = true;
49
- <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 >
50
- Set the args.CancelSynchronize = true; to override the default
51
- DatePicker behavior of synchronizing the date in the DateInput and Calendar
52
- controls. This is useful for focusing the Calendar control on a date different from
53
- the DateInput one.
54
- <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 >
57
+ ```` ASPX
58
+ <script type="text/javascript">
59
+ function Opening(sender, args){
60
+ args.CancelOpen = true; //or return false;
61
+ }
62
+ </script>
63
+ <radCln:RadDatePicker ID="RadDatePicker1" runat="server">
64
+ <ClientEvents OnPopupOpening="Opening"/>
65
+ </radCln:RadDatePicker>
66
+ ````
67
+ Set the args.CancelSynchronize = true; to override the default
68
+ DatePicker behavior of synchronizing the date in the DateInput and Calendar
69
+ controls. This is useful for focusing the Calendar control on a date different from
70
+ the DateInput one.
71
+ ```` ASPX
72
+ <script type="text/javascript">
73
+ function Opening(sender, args){
74
+ args.CancelCalendarSynchronize = true;
75
+ sender.Calendar.NavigateToDate([2006,12,19]);
76
+ }
77
+ </script>
78
+ <radCln:RadDatePicker ID="RadDatePicker1" runat="server">
79
+ <ClientEvents OnPopupOpening="Opening"/>
80
+ </radCln:RadDatePicker>
81
+ ````
55
82
56
83
### OnViewChanged ` String `
57
84
0 commit comments