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

Dynamically add and remove multiple resources

Thread ID:

Created:

Updated:

Platform:

Replies:

143720 Apr 2,2019 11:58 AM UTC Apr 3,2019 12:01 PM UTC React - EJ 2 1
loading
Tags: Schedule
Sonam Diwate
Asked On April 2, 2019 11:58 AM UTC

I want to perform dynamically add and remove multiple resources functionality,
but below function accepts on one object at a time:
scheduledData.scheduleCompObj.addResource(resourceData[0], 'Resources', 0);


Is there any way i can pass array of object to add multiple resources at a time.



Nevitha Ravi [Syncfusion]
Replied On April 3, 2019 12:01 PM UTC

Hi Sonam, 

Greetings from Syncfusion Support. 

Currently we have support only to pass single resource object to the public method addResource and we will consider your requirement ‘adding multiple resources dynamically’ as improvement. It will be included in our weekly patch release on 16th April, 2019. Please find the following feedback portal link for the same in which you can add your suggestions as comments. 

In the meantime, you can pass the resource collections as object in a loop without passing position as in the following code example. 
    for(let i= 0; i< resourceData.length; i++) { 
      scheduledData.scheduleCompObj.addResource(resourceData[i], 'Resources'); 
    } 

Regards, 
Nevitha 


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