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.
Unfortunately, activation email could not send to your email. Please try again.

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

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

Article ID: Published Date: Last Revised Date: Platform: Control:
8645 04/05/2018 04/05/2018 ASP.NET MVC Gantt
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.