Click or drag to resize
DatePickerClientEventsOnPopupOpening Property
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.

Namespace: Kettic.AspNet.Controls.Calendar
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public string OnPopupOpening { get; set; }

Property Value

Type: String
Remarks

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>
<kaxCln:KaxDatePicker ID="KaxDatePicker1" runat="server">
<ClientEvents OnPopupOpening="Opening"/>
</kaxCln:KaxDatePicker>

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>
<kaxCln:KaxDatePicker ID="KaxDatePicker1" runat="server" >
<ClientEvents OnPopupOpening="Opening"/>
</kaxCln:KaxDatePicker>
Examples
            [AspNet/ASCX]        
            
            <script type="text/javascript">
function OnPopupOpening(datepickerInstance, args)
{
......
}
</script>

<kaxcln:KaxDatePicker ID="KaxDatePicker1" runat="server">
<ClientEvents OnPopupOpening="OnPopupOpening" />
</kaxcln:KaxDatePicker>
See Also