Click or drag to resize
KaxSchedulerOnClientFormCreated Property
Gets or sets a value indicating the client-side event handler that is called when an edit/insert form has been created.

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 OnClientFormCreated { 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 OnClientFormCreated client-side event handler is called when an edit/insert form has been created. Two parameters are passed to the handler:

  • sender, the scheduler client object;
  • eventArgs with two properties:
    • get_appointment(), the instance of the appointment.
    • get_formElement(), the DOM element of the form.
    • get_mode(), enumerable of type Kettic.AspNet.Controls.SchedulerFormMode. See SchedulerFormMode for the list of possible values.
    • get_editingRecurringSeries(), a boolean indicating if the user has chosen to edit the recurring series (true) or a single occurrence (false).

This event cannot be cancelled.

Examples

<script type="text/javascript">
function onClientFormCreatedHandler(sender, eventArgs)
{
var appointment = eventArgs.get_appointment();
var formElement = eventArgs.get_formElement();
}
</script>

<kettic:KaxScheduler ID="KaxScheduler1"
runat="server"
OnClientFormCreated="onClientFormCreatedHandler">
....
</kettic:KaxScheduler>

See Also