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

User is reassigning a task and there’s a conflict in schedule means new technician already has a task assigned in that time.

Hi Syncfusion,

We want to stop multiple task at same time .I have tried "isSlotAvailable" method with scheduler reference but it not working .



We have tried isSlotAvailable method .Kindly provide other approach .



1 Reply

KK Karthigeyan Krishnamurthi Syncfusion Team September 10, 2019 06:09 AM UTC

 
Syncfusion greetings. 
 
We have checked the isSlotAvailable method and it is working correctly. Kindly try the sample and if the issue persists, try to reproduce the error in a sample and revert else share your code example/runnable sample (if possible) to serve you better. 
 
onActionBegin(args) { 
    if (args.requestType === 'eventCreate' || args.requestType === 'eventChange') { 
      let data; 
      if (args.requestType === 'eventCreate') { 
        data = args.data[0]; 
      } 
      else if (args.requestType === 'eventChange') { 
        data = args.data; 
      } 
      if (!this.scheduleObj.isSlotAvailable(data)) { 
        args.cancel = true; 
      } 
    } 
  } 
 
Regards, 
Karthi 
  
 


Loader.
Live Chat Icon For mobile
Up arrow icon