Hello,
I want the following: if I double click an appointment, I want a custom Recurrence action dialog. For this I have done the following steps:
1. in OnClientAppointmentDoubleClick I store the ID of the appointment which has been double clicked:
2. In the OnClientRecurrenceActionDialogShowing I suppress the standard action and show my custom popup:
3. In the OnClick event handler of my custom popup's OK button, I use the stored doubleClickedAppointment and want to display the AdvancedEditForm.
But I have some issues:
a. If I double click an instance of a series, the ID received in the double click event handler is the ID of the series appointment, formatted like this: "c5628db3-7446-4550-94eb-62841308404f_0" <--- this is the GUID from the DB and a "_0". What is the "_0"?
b. What is the best way to find the instance of the series on which the user double clicked?
c. How should I call ShowAdvancedEditForm()? What should be the second parameter be based on? If the user chooses to edit the series, then I should pass true, right? Otherwise false. But then again, what should the first parameter be? The exception appointment, or the series appointment?
Maybe my entire approach is not correct. Is there an easier way to accomplish this behavior?
Best regards,
Cantemir
I want the following: if I double click an appointment, I want a custom Recurrence action dialog. For this I have done the following steps:
1. in OnClientAppointmentDoubleClick I store the ID of the appointment which has been double clicked:
var apt = eventArgs.get_appointment(); |
// store this and use it on the popups OK button click |
$get("doubleClickedAppointment").value = apt.get_id(); |
eventArgs.set_cancel(true); |
var modalPopupBehavior = $find('InstanceOrSeriesModalPopupExtender'); |
modalPopupBehavior.show(); |
return false; |
But I have some issues:
a. If I double click an instance of a series, the ID received in the double click event handler is the ID of the series appointment, formatted like this: "c5628db3-7446-4550-94eb-62841308404f_0" <--- this is the GUID from the DB and a "_0". What is the "_0"?
b. What is the best way to find the instance of the series on which the user double clicked?
c. How should I call ShowAdvancedEditForm()? What should be the second parameter be based on? If the user chooses to edit the series, then I should pass true, right? Otherwise false. But then again, what should the first parameter be? The exception appointment, or the series appointment?
Maybe my entire approach is not correct. Is there an easier way to accomplish this behavior?
Best regards,
Cantemir