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.

Custom calculation of dates for parent task

Thread ID:





129342 Mar 14,2017 01:38 AM Mar 15,2017 02:50 AM JavaScript 1
Tags: ejGantt
Nivedita Vijaivergiya
Asked On March 14, 2017 01:38 AM


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?



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

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": [ 
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. 
Jayakumar D 


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.