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.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic string OnClientFormCreated { get; set; }
Public Property OnClientFormCreated As String
Get
Set
public:
property String^ OnClientFormCreated {
String^ get ();
void set (String^ value);
}
member OnClientFormCreated : string with 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.
RemarksIf 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