Fires on client side before dialog open.
Namespace:
C1.Web.UI.Controls.C1ScheduleAssembly: C1.Web.UI.Controls.2 (in C1.Web.UI.Controls.2.dll)
Syntax
C# |
---|
[EditorAttribute("C1.Web.UI.Design.UITypeEditors.C1ClientHandlerUITypeEditor", typeof(UITypeEditor))] [BindableAttribute(false)] [JsonAttribute(true, true, "")] [ClientSideHandlerArgsAttribute("schedule, dialogEventArgs")] [DefaultValueAttribute("")] [C1CategoryAttribute("Client Side Events")] public string OnClientBeforeDialogOpen { get; set; } |
Visual Basic |
---|
<EditorAttribute("C1.Web.UI.Design.UITypeEditors.C1ClientHandlerUITypeEditor", _ GetType(UITypeEditor))> _ <BindableAttribute(False)> _ <JsonAttribute(True, True, "")> _ <ClientSideHandlerArgsAttribute("schedule, dialogEventArgs")> _ <DefaultValueAttribute("")> _ <C1CategoryAttribute("Client Side Events")> _ Public Property OnClientBeforeDialogOpen As String Get Set |
Examples
function C1Schedule1_OnClientBeforeDialogOpen(schedule, dialogEventArgs) {
if (dialogEventArgs.get_dialogType() == C1.Web.UI.Controls.C1Schedule.DialogType.editAppointment) {
dialogEventArgs.set_cancel(true);
var appointment = dialogEventArgs.get_appointment();
alert("Here you can provide own 'Edit Appointment' dialog for appointment with subject '" + appointment.get_subject() + "'.");
}
}