Click or drag to resize
KaxSchedulerOnClientAppointmentsPopulating Property
Gets or sets a value indicating the client-side event handler that is called when the scheduler is about to request appointments from the Web Service.

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 OnClientAppointmentsPopulating { 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 OnClientAppointmentsPopulating client-side event handler is called when the scheduler is about to request appointments.

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

When client-side binding is used, the event will be raised before the appointments are retrieved from the data service. The event will be raised again each time new data is about to be retrieved from the web service.

Two parameters are passed to the handler:

  • sender, the scheduler client object;
  • eventArgs with two properties:
    • get_schedulerInfo(), the schedulerInfo object that will be passed to the web service method.
    • set_cancel(), used to cancel the event.

This event can be cancelled.

Examples

<script type="text/javascript">
function clientAppointmentsPopulatingHandler(sender, eventArgs)
{
alert("Data loading");
eventArgs.get_schedulerInfo().CustomProperty = "My Data"; }
</script>

<kettic:KaxScheduler ID="KaxScheduler1"
runat="server"
OnClientAppointmentsPopulating="clientAppointmentsPopulatingHandler">
....
</kettic:KaxScheduler>

See Also