Change the default save function

I want to change the default behaviour of the new event modal. is there a simple way to catch the addevent function?


1 Reply 1 reply marked as answer

RM Ruksar Moosa Sait Syncfusion Team March 21, 2022 04:47 PM UTC

Hi Frank,


You can change the default save function by using requestType as eventCreate in the actionBegin method like the below code snippet.


onActionBegin: function (args) {

      if(args.requestType==='eventCreate'){

      let scheduleObj = this.$refs.ScheduleObj;

      alert(scheduleObj.ej2Instances.currentAction)        

      }

      }}

});


Sample: https://codesandbox.io/s/vue-sample-sbfqc4


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


Regards,

Ruksar Moosa Sait


Marked as answer
Loader.
Up arrow icon