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

Custom calculation of dates for parent task

Thread ID:

Created:

Updated:

Platform:

Replies:

129342 Mar 14,2017 05:38 AM UTC Mar 15,2017 06:50 AM UTC JavaScript 1
loading
Tags: ejGantt
Nivedita Vijaivergiya
Asked On March 14, 2017 05:38 AM UTC

Hi,

In Gantt, currently , it calculate dates for parent items on the basis of child task, how can i set dates for parent task according to our custom calculation rather then calculation on the basis of child elements?


Thanks,

Nivedita

Jayakumar Duraisamy [Syncfusion]
Replied On March 15, 2017 06:50 AM UTC

Hi Nivedita, 
In Gantt, we can customize the dates for parent task and the dates are independent of its child tasks. It can be achieving by adding the Boolean property for parent tasks in the data source to consider as   manual scheduling mode and use the API’s “taskSchedulingMode” as “custom” and “taskSchedulingModeMapping” as “Boolean property name” to enable this support. 
Please refer following code snippet, 
var scheduleModeData = [ 
             { 
                 "TaskID": 1, 
                 "TaskName": "Parent Task 1", 
                 "StartDate": new Date("02/23/2014"), 
                 "EndDate": new Date("02/27/2014"), 
                 "Progress": "40", 
                 "isManual" : true, 
                 "Children": [ 
                  //…]} 
]; 
 
$("#GanttContainer").ejGantt({ 
//… 
taskSchedulingModeMapping: "isManual", 
taskSchedulingMode: ej.Gantt.TaskSchedulingMode.Custom, 
}); 
We have also prepared sample for this and to know more details about task scheduling mode, please refer following links. 
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.

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

;