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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to load & save resource unit for each resources of a task

Platform: ASP.NET MVC |
Control: Gantt |
Published Date: April 5, 2018 |
Last Revised Date: April 5, 2018

In Gantt, it is possible to save resource unit of each resources for a task. Resource unit was mapped from data source by using ResourceUnitMapping property. The resources of each task are mapped with resource id alone or resource id with resource unit value.

When the resource unit value is not equals to 100% then the resource value was assigned as object with ResourceIdMapping and ResourceUnitMapping properties to the task.

In SQL table we can’t save resource collection as array object, so we must save this in string format. Hence we need to parse this value before load into Gantt control, similarly while saving the resource value in database, we must convert resource array collection in string format.

Please refer following code snippet.

We have prepared a sample to save resource id and resource unit values of multiple resources as array of string in the “ActionComplete” client-side event by using “updateResourceID” method. On loading data from server-side it should be convert as resource collection by using “GetResourceValues” method.



A simple sample to load and save resource unit value using remote data is available here

2X faster development

The ultimate ASP.NET MVC UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

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