jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts

  • kvr
    Participant

    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.


    kvr
    Participant

    Hristo, 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

    }

Viewing 2 posts - 1 through 2 (of 2 total)