Click or drag to resize
KaxSchedulerOnClientRequestSuccess Property
Gets or sets a value indicating the client-side event handler that is called when a request to the Web Service has succeeded.

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 OnClientRequestSuccess { 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 OnClientRequestSuccess client-side event handler is called when a request to the Web Service has succeeded.

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

Two parameters are passed to the handler:

  • sender, the scheduler client object;
  • eventArgs with one property:
    • get_result(), the object received from the server as.

This event can be cancelled.

Examples

<script type="text/javascript">
function clientRequestSuccessHandler(sender, eventArgs)
{
alert("Operation code: " + eventArgs.get_result().Code);
}
</script>

<kettic:KaxScheduler ID="KaxScheduler1"
runat="server"
OnClientRequestSuccess="clientRequestSuccessHandler">
....
</kettic:KaxScheduler>

See Also