Click or drag to resize
KaxSchedulerOnClientAppointmentCreated Property
Gets or sets a value indicating the client-side event handler that is called when an appointment is received from the Web Service and hase been rendered.

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

Property Value

Type: String
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
Remarks

If specified, the OnClientAppointmentCreated client-side event handler is called when an appointment is received and has been rendered.

In the case of server-side binding, the event will not be raised.

When client-side binding is used, the event will be raised after the appointments are retrieved from the data service. The event will be raised for each appointment that has been retrieved from the web service.

Two parameters are passed to the handler:

  • sender, the scheduler client object;
  • eventArgs with one property:
    • get_appointment(), the appointment that has been rendered.

This event cannot be cancelled.

Examples

<script type="text/javascript">
function clientAppointmentCreatedHandler(sender, eventArgs)
{
eventArgs.get_appointment().get_element().style.border = "1px solid red";
}
</script>

<kettic:KaxScheduler ID="KaxScheduler1"
runat="server"
OnClientAppointmentCreated="clientAppointmentCreatedHandler">
....
</kettic:KaxScheduler>

See Also