ActionType.EventCreate with Custom Editor Window

Hi,

when I use customized Editor Window, the ActionType is always EventChange and entities are tracked in ChangedRecords.

Can I set it as as EventCreate and have entities in AddedRecords?


1 Reply

RM Ruksar Moosa Sait Syncfusion Team June 2, 2022 10:37 AM UTC

Hi Emanuele,


When we create a new appointment, by default it will be added in the AddedRecords like the below picture.

public void OnActionBegin(Syncfusion.Blazor.Schedule.ActionEventArgs<AppointmentData> args)

    {

        if (args.ActionType == ActionType.EventCreate)

        {

            Console.WriteLine(args.AddedRecords[0].Subject);

        }

    }


Output:

Graphical user interface, application

Description automatically generated


Graphical user interface, text, application, email

Description automatically generated


Kindly check the attached sample and let us know if you need any assistance.


Regards,

Ruksar Moosa Sait


Attachment: SchedulerAddedRecords_6d60c91d.zip

Loader.
Up arrow icon