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

Dynamically add and remove multiple resources

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.

1 Reply

NR Nevitha Ravi Syncfusion Team 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'); 


Live Chat Icon For mobile
Up arrow icon