jQWidgets Forums
Forum Replies Created
-
Author
-
June 12, 2020 at 3:43 pm in reply to: Issue regarding deleting a single occurence appointment in JQX scheduler Issue regarding deleting a single occurence appointment in JQX scheduler #112213
Histro
Thank you for the quick response. I have tried the ways u mentioned in our previous conversation.1. Using appointmentChange event
When I tried to delete a single occurrence from a series the appointmentChange is not fired.2. Binding the click event of the “Delete” button. To achieve this I used the editDialogOpen callback.
With the appointmentClick event I used to recognize before that on which appointment you click.In this scenario when I click on the single occurrence, if I try to debug the event parameter, The appointment in event argument belongs to the entire series, not to the single occurrence.
Let consider a scenario. If we have a weekly schedule running from Monday to Saturday. and deleted a schedule(single recurrence) on Thursday.
On database side, I am saving the entire schedules info(series and not recurring schedules) into one table and deleted or updated schedules into another table. So I need to save the Thursdays info into the exception table.June 11, 2020 at 1:21 pm in reply to: Issue regarding deleting a single occurence appointment in JQX scheduler Issue regarding deleting a single occurence appointment in JQX scheduler #112184Hristo, Thank you for the quick response. I tried to catch the deletion of the appointment using the onAppointmentDelete event. It is working fine in the case of deleting the entire series, not for the single occurrence.
HTML:
<jqxScheduler *ngIf=”isVisisble” #scheduler
[width]=”getWidth()” [height]=”350″
[date]=”date”
[source]=”dataAdapter”
[showLegend]=”true”
[view]=”view”
[views]=”views”
[editDialogCreate]=”editDialogCreate”
[appointmentDataFields]=”appointmentDataFields”
(onAppointmentAdd)=”appointmentAdd($event)”
(onAppointmentChange)=”appointmentChange($event)”
(onAppointmentDelete)=”appointmentDelete($event)”
(onViewChange)=”ViewChange($event)”
(onEditDialogOpen)=”EditDialogOpen($event)”
(onEditDialogClose)=”EditDialogClose($event)”>
</jqxScheduler>Component:
public appointmentDelete = (event) => {
//code for saving deleted appointments
//this method is hitting when I delete the entire series not for the single occurence}
-
AuthorPosts