while i am creating 'yearly' reccurrance event i am facing one issue.. please help

while i am creating 'yearly' reccurrance event i am getting 'repeatOn' as current date instead of getting selected event date details.

see below example i am creating event on october 4th 2022, and below in repeat on section i am getting current date august 22 but actually i want october 4th.

can you please help me on this on emergency basis. 

html.code :

<ejs-recurrenceeditor #ReccObj value='{{data.RecurrenceRule}}' (change)="onRec($event)">
            </ejs-recurrenceeditor>


version syncfusion schedule : 19.1.63


sync.PNG 


2 Replies

NA naidu August 23, 2022 10:22 AM UTC

hi team can you please help me on this.



RV Ravikumar Venkatesan Syncfusion Team August 23, 2022 12:35 PM UTC

Hi Naidu,


Greetings from Syncfusion support.


We have validated your query “while i am creating 'yearly' reccurrance event i am facing one issue” at our end. Based on your shared details we suspect that you are using the Recurrence editor in the editorTemplate of the Schedule. You can resolve the problem by setting up the startDate property of the Recurrence editor as shown in the below code snippet.


Sample: https://stackblitz.com/edit/ej2-angular-schedule-editor-template-with-recurrence?file=app.component.ts


[app.component.html]

    <ng-template #editorTemplate let-data>

      <table *ngIf="data != undefined" class="custom-event-editor" width="100%" cellpadding="5">

        <tbody>

          <tr>

            <td class="e-textlabel">Recurrence</td>

            <td colspan="4">

              <ejs-recurrenceeditor #ReccObj value='{{data.RecurrenceRule}}'

                [startDate]='startDateParser(data.startTime || data.StartTime)' (change)="onRec($event)">

              </ejs-recurrenceeditor>

            </td>

          </tr>

        </tbody>

      </table>

    </ng-template>


Kindly try the shared solution and let us know if you need any further assistance on this.


API: https://ej2.syncfusion.com/angular/documentation/api/recurrence-editor/#startdate


Regards,

Ravikumar Venkatesan


Loader.
Up arrow icon