We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Event argument "changedRecords" on actionBegin/Complete question

Within the actionBegin and actionComplete events when modifying a schedule event (args.requestType = "eventChange" or "eventChanged"),  args.data contains the updated event data, as expected.  The args.changedRecords also contains the updated event data.  Shouldn't this hold the original event data instead?


Having the original values may be helpful or necessary when updating the backend database.


1 Reply

SR Swathi Ravi Syncfusion Team March 3, 2023 03:46 PM UTC

Hi John,


The args.data property of the actionBegin has been deprecated. So, you can get the original event details as shown in the below snippet.


Sample: https://stackblitz.com/edit/llrnbm?file=index.js


[index.js]

var scheduleObj = new ej.schedule.Schedule({

    actionBegin: function (args) {

        if (args.requestType == "eventChange") {

            var originalEvent = scheduleObj.activeEventData.event;

            console.log("ActionBegin"originalEvent);

        }

    }

});

scheduleObj.appendTo('#Schedule');

 


Regards,

Swathi Ravi


Loader.
Live Chat Icon For mobile
Up arrow icon