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. Image for the cookie policy date
close icon

Single day task problem

Hello,

If we set a parent task with a date 01.01.2014 - 10.01.2014 (dd.MM.yyyy) and add a single day subtask under it, it stretches the parent task like the subtask is the last item on the task line.

How can we fix it?

Thanks!

4 Replies

JR John Rajaram Syncfusion Team February 16, 2015 01:55 PM UTC

Hi Hasan,

Thanks for using Syncfusion products.

We would like to let you know that, parent task item’s start date and end date will get update based on the child task item’s start date and end date. Currently this is the behavior of the parent item in Gantt control. If there are many child task item, from which parent item will take minimum start date and maximum end date. If this is not related to your query, we request you to share more information about your query and please revert us with the sample along with the replication procedure. This would be helpful for us to serve you better.

Now we have prepared a sample with simple parent and child task item. Please find the sample in the following location.

Sample: http://www.syncfusion.com/downloads/support/directtrac/118240/GanttTestSampleParent960590482.zip

 

Please let us know if you need more information on this.

Regards,
John. R




HK Hasan Kosten February 17, 2015 12:52 PM UTC

Hello,

Sorry for insufficient information. When I add a one-day task to a parent task, parent task stretches according to that 1-day task (as if it is the ending mark), and the dates are presented wrong. 

When I add the task as 2 day task, everything is normal. If I add the task as 1 day task, the problem arises. Attached the images.

[IMG]http://i57.tinypic.com/25i10uf.png[/IMG]

[IMG]http://i58.tinypic.com/28w2tli.png[/IMG]

Thank you.


JR John Rajaram Syncfusion Team February 18, 2015 12:18 PM UTC

Hi Hasan,

Thanks for the update.

We would like to let you know that, while providing same date for both StartDate and EndDate, we have to provide MileStone value as “false” for the “MilestoneMapping” property.

Please refer the following code snippets for defining “MilestoneMapping”

Code snippets:

In GanttSample.aspx:

<body>

<form id="form1" runat="server" onsubmit="return false" style="overflow: hidden; padding:0; margin: 0;height:100%;width:100%;">

<ej:Gantt ID="Gantt" runat="server"

StartDateMapping="StartDate" EndDateMapping="EndDate" MilestoneMapping="MileStone"

//...

ej:Gantt>

form>

body>

In GanttSample.aspx.cs:

//...

new BusinessObject()

{

Id = 6,

Name = "Child Task 1",

StartDate = "03/02/2014",

EndDate="03/02/2014",

PercentDone = "85",

MileStone = false,

},

new BusinessObject()

{

Id = 7,

Name = "Child Task 2",

StartDate = "03/02/2014",

EndDate="03/02/2014",

PercentDone = "45",

MileStone = false,

},

//...

But at present we are facing some issues in MilestoneMapping property and we have confirmed this as bug and logged a report on this. Also we have created a support incident under your account to track the status of this issue.

Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

At present to meet your requirement, we request you to provide “DurationMapping” property. Please provide Duration value as “1”, if you give same date for both StartDate and EndDate in the data source.
Please refer the below code snippets for more details.
Code snippets:

In GanttSample.aspx:

<body>

<form id="form1" runat="server" onsubmit="return false" style="overflow: hidden; padding:0; margin: 0;height:100%;width:100%;">

<ej:Gantt ID="Gantt" runat="server"

StartDateMapping="StartDate" EndDateMapping="EndDate" DurationMapping="Duration"

//...

ej:Gantt>

form>

body>

In GanttSample.aspx.cs:

//...

new BusinessObject()

{

Id = 6,

Name = "Child Task 1",

StartDate = "03/02/2014",

EndDate="03/02/2014",

PercentDone = "85",

Duration = 1,

},

new BusinessObject()

{

Id = 7,

Name = "Child Task 2",

StartDate = "03/02/2014",

EndDate="03/02/2014",

PercentDone = "45",

Duration = 1,

},

//...

We have prepared a sample with DurationMapping. Please find the sample in the following location.

Sample:

Please let us know if you need more information on this.

Regards,
John. R




JR John Rajaram Syncfusion Team February 18, 2015 12:26 PM UTC

Hi Hasan,

Please ignore our previous update.

We would like to let you know that, while providing same date for both StartDate and EndDate, we have to provide MileStone value as “false” for the “MilestoneMapping” property.

Please refer the following code snippets for defining “MilestoneMapping”

Code snippets:

In GanttSample.aspx:

<body>

<form id="form1" runat="server" onsubmit="return false" style="overflow: hidden; padding:0; margin: 0;height:100%;width:100%;">

<ej:Gantt ID="Gantt" runat="server"

StartDateMapping="StartDate" EndDateMapping="EndDate" MilestoneMapping="MileStone"

//...

ej:Gantt>

form>

body>

In GanttSample.aspx.cs:

//...

new BusinessObject()

{

Id = 6,

Name = "Child Task 1",

StartDate = "03/02/2014",

EndDate="03/02/2014",

PercentDone = "85",

MileStone = false,

},

new BusinessObject()

{

Id = 7,

Name = "Child Task 2",

StartDate = "03/02/2014",

EndDate="03/02/2014",

PercentDone = "45",

MileStone = false,

},

//...

But at present we are facing some issues in MilestoneMapping property and we have confirmed this as bug and logged a report on this. Also we have created a support incident under your account to track the status of this issue.

Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

At present to meet your requirement, we request you to provide “DurationMapping” property. Please provide Duration value as “1”, if you give same date for both StartDate and EndDate in the data source.
Please refer the below code snippets for more details.
Code snippets:

In GanttSample.aspx:

<body>

<form id="form1" runat="server" onsubmit="return false" style="overflow: hidden; padding:0; margin: 0;height:100%;width:100%;">

<ej:Gantt ID="Gantt" runat="server"

StartDateMapping="StartDate" EndDateMapping="EndDate" DurationMapping="Duration"

//...

ej:Gantt>

form>

body>

In GanttSample.aspx.cs:

//...

new BusinessObject()

{

Id = 6,

Name = "Child Task 1",

StartDate = "03/02/2014",

EndDate="03/02/2014",

PercentDone = "85",

Duration = 1,

},

new BusinessObject()

{

Id = 7,

Name = "Child Task 2",

StartDate = "03/02/2014",

EndDate="03/02/2014",

PercentDone = "45",

Duration = 1,

},

//...

We have prepared a sample with DurationMapping. Please find the sample in the following location.

Sample: http://www.syncfusion.com/downloads/support/directtrac/118240/GanttMileStone-1499281842.zip

Please let us know if you need more information on this.

Regards,
John. R



Loader.
Up arrow icon