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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

147390 Sep 9,2019 10:26 AM UTC Sep 10,2019 06:09 AM UTC React - EJ 2 1
loading
Tags: Schedule
Sudhanshu Jain
Asked On September 9, 2019 10:26 AM UTC

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 .



Karthigeyan Krishnamurthi [Syncfusion]
Replied On 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 
  
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon