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

Custom calculation of dates for parent task

Thread ID:





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


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

Please sign in to access our forum

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