Scheduler data source

Hi, please help, how can I save and read data to a local json file on event save of the editor window button of the events scheduler/calendar


1 Reply

RM Ruksar Moosa Sait Syncfusion Team July 29, 2022 01:13 PM UTC

Hi Percy,


Greetings from Syncfusion Support.


If you want to write to a file, you will need to send an API request from your browser/React to a server and have that server write to the file system. You can do this in our actionComplete event of the Schedule like the one below.



onActionComplete(args) {

    let result = data.fifaEventsData // Event data

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

      if (args.addedRecords.length > 0) {

        result = { ...result, ...args.addedRecords };

      }

      //With the result, you can export the file here

    }

  }


Regards,

Ruksar Moosa Sait


Attachment: ej2reactreadjsonfile_8c311d79.zip

Loader.
Up arrow icon