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.

Gannt resources and units

Thread ID:

Created:

Updated:

Platform:

Replies:

130135 Apr 24,2017 09:52 AM Apr 26,2017 08:20 AM ASP.NET Web Forms 3
loading
Tags: Gantt
Armand De Lange
Asked On April 24, 2017 09:52 AM

Hi

When enabling resources, in its dialog there is a dropdown for the resource and a unit in %. I can save the resources as comma separated values, but how do you get and safe its unit value?

And also is it possible to hide the unit value on the resources dialog?

THX
Armand

Jayakumar Duraisamy [Syncfusion]
Replied On April 25, 2017 01:08 PM

Hi Armand, 
 
Please find the response below. 
 
Query 1: I can save the resources as comma separated values, but how do you get and safe its unit value? 
Solution: When we are adding resources from dropdown, it will be save as 100%-unit value as default. We can add/remove resources in cell editing actions, suppose we want to change the unit value, it can be change in the dialog resource tab,  
 
Query 2:  is it possible to hide the unit value on the resources dialog? 
Solution:  We don’t have any in-build API/methods to hide resource unit column at run time but we can achieve it by following work around. 
By using “actionBegin” client side event, we can hide the unit column using “hideColumn” public method.  
Please refer following code snippet, 
$("#gantt").ejGantt({ 
//… 
actionBegin:"actionBegin", 
}) 
function actionBegin(args) { 
                if (args.requestType == "OpenAddDialog") { 
 
                    var resObj = $(args.element).find("#treegrid" + this._id + "resourceAdd").ejTreeGrid("instance"); 
                    // pass column header Text 
                    resObj.hideColumn("Unit") 
 
                } 
                else if (args.requestType == "openEditDialog") { 
                    var resObj = $(args.element).find("#treegrid" + this._id + "resourceEdit").ejTreeGrid("instance"); 
                    //pass column header Text 
                    resObj.hideColumn("Unit") 
                } 
            } 
 
We have also prepared a sample for your reference, please find the following sample link, 
  
Regards, 
Jayakumar D 


Armand De Lange
Replied On April 25, 2017 01:59 PM

Hi

Thanks for the reply.

Regarding the units, I want to save the unit values to a sql database, so that they can persist and be loaded on the next display on the Gantt control. And I can't figure it out, I also do not see it on the object in javascript by using var ganttObj = $("#Gantt").data("ejGantt");

So I need to save it to database, and again let it display and be used in the gantt control on binding.

THX
Armand

Jayakumar Duraisamy [Syncfusion]
Replied On April 26, 2017 08:20 AM

Hi Armand, 
 
At present, there is no support for resource unit value allocation for each record. Hence, we have logged a Feature report “Support for resources units of each record in Gantt”. We are considered this feature as high priority and it will be implemented in any of our upcoming main release. 
 
Please let us know if you require further assistance on this. 
Regards, 
Jayakumar D 


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.

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.

;