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.

Single day task problem

Thread ID:

Created:

Updated:

Platform:

Replies:

118240 Feb 15,2015 04:37 PM Feb 18,2015 07:26 AM ASP.NET Web Forms 4
loading
Tags: Gantt
Hasan Kosten
Asked On February 15, 2015 04:37 PM

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!

John Rajaram [Syncfusion]
Replied On February 16, 2015 08:55 AM

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



Hasan Kosten
Replied On February 17, 2015 07:52 AM

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.

John Rajaram [Syncfusion]
Replied On February 18, 2015 07:18 AM

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



John Rajaram [Syncfusion]
Replied On February 18, 2015 07:26 AM

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



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.

;