Hi,
When I have task with constraint 'Finish No Later Than', I get some weird results. It seems the original start date (set with 'Start No Earlier Than') is used for calculating the actual start date for 'Finish No Later Than'. This gives me problems, because in our software I have to calculate the start dates using our own algorithm (which should match the way Infragistics calculates the dates).
To demonstrate why I think that the UltraGanttView might have incorrect behaviour, I've made the following sample project. Please create a Windows Forms application and replace Form1.cs with the following code:
using System; using System.Drawing; using System.Windows.Forms; using Infragistics.Win.UltraWinGanttView; using Infragistics.Win.UltraWinSchedule; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } protected override void OnLoad(EventArgs e) { base.OnLoad(e); var ganttView = new UltraGanttView(); var calendarInfo = new UltraCalendarInfo(); ganttView.Dock = DockStyle.Fill; ganttView.CalendarInfo = calendarInfo; ganttView.Project.StartDate = new DateTime(2014, 1, 1); Controls.Add(ganttView); var task1 = new Task { StartDateTime = new DateTime(2014, 1, 8), Duration = TimeSpan.FromDays(5) }; var task2 = new Task { StartDateTime = new DateTime(2014, 1, 1), Duration = TimeSpan.FromDays(5), Constraint = TaskConstraint.FinishNoLaterThan, ConstraintDateTime = new DateTime(2014, 2, 1) }; task2.Dependencies.Add(task1, TaskDependencyType.FinishToStart); calendarInfo.Tasks.Add(task1); calendarInfo.Tasks.Add(task2); ganttView.EnsureDateTimeVisible(ganttView.Project.StartDate.AddDays(-1)); } } }
Task 2 should start after task 1 has ended (the constraint date allows this to happen), but it follows the StartDateTime set in the object initializer of task2. Could you tell me why this is happening? I am using version 10.3.20103.2145, although this also seems to happen in later versions.
Hello,
Our developers looked into this and determined that the current behavior is not correct. I have logged this issue with our developers and created support case CAS-140451-Q1Y3T7 to track the issue. You can view this case by clicking "Account" at the upper-right corner of the site and viewing the Support Activity page.
Okay, thank you.
This issue has been resolved in the latest available Service Releases as of the date of this post for Infragistics for Windows Forms 2013 Volume 2, 2014 Volume 1, and 2014 Volume 2. To download the service release, log in to ‘Account’ and select ‘Keys & Downloads’. Select the appropriate tab for this product; then the license key. The available service releases (Hot Fixes) should now be listed on the page.
Please let me know if I may be of further assistance.