SfRecurrenceEditor does not work in custom editor window

Hi,

I have a scheduler with a custom editor window.

I have a sfrecurrenceeditor in the template.


If i click on one of the recurrences and select Edit Event, it shows the recurrence editor in the editor window. Which it should not if i am editing a single occurrence.

If i make changes to that single event and save it does not work.


Can you confirm that the recurrence editor works in a custom editor window in that scenario.

It shows the events on the scheduler correctly but i cannot edit a single occurrence.

I am using Visual Studio 2022 and Syncfusion Blazor 19.4.0.43


Thanks


1 Reply

RM Ruksar Moosa Sait Syncfusion Team January 21, 2022 04:42 AM UTC

Hi Fergus,


You can hide the SfRecurrenceEditor by using a boolean variable and binding it to the SfRecurrenceEditor tag like the below code snippet.


public bool hide { get; set; } = true;


<div class="recurrence-editor">

        @if (hide)

            {

              <SfRecurrenceEditor @ref="RecurrenceEditor" Value="@RecurrenceValue"></SfRecurrenceEditor>

            }

</div>


Also you have to bind the boolean variable to the onPopupOpen method like the below code snippet.


public void OnPopupOpen(PopupOpenEventArgs<AppointmentData> args)

    {

        if (args.Type == PopupType.Editor)

        {

            var action = this.ScheduleRef.GetCurrentAction();

            hide = (action == CurrentAction.EditOccurrence) ? false : true;

        }

    }


Kindly try the attached sample and let us know if this meets your requirement.


Regards,

Ruksar Moosa Sait


Attachment: HideRecurrenceEditor_79cf477f.zip

Loader.
Up arrow icon