August 17, 2018, 03:35:12 PM

See more Support incidents in our old archived forum.

Author Topic: StartTime&EndTime issue with customized column  (Read 1709 times)

dniezgoda

  • Customers
  • Newbie
  • *
  • Posts: 18
StartTime&EndTime issue with customized column
« on: October 11, 2015, 02:50:52 AM »
Hi Support team,

If we customize the start/endtime column header such as change text to Start/Finish then the Starttime/Endtime does not work properly in case of using Predecessor value

the example source code: https://drive.google.com/file/d/0B1ahYTSivJpmOEIwVXFqQkJCdDA/view?usp=sharing
In this case we cannot change the Start value on item "Task3" unless we hide the code in method "ganttControl_TemplateApplied" (remove customized column codes)

please advice us
Thanks

ForumAdmin

  • Administrator
  • Jr. Member
  • *****
  • Posts: 82
Re: StartTime&EndTime issue with customized column
« Reply #1 on: October 12, 2015, 03:59:45 PM »
Daniel,

We are looking into this issue, we will update you soon.

Thanks
RQ Support

ForumAdmin

  • Administrator
  • Jr. Member
  • *****
  • Posts: 82
Re: StartTime&EndTime issue with customized column
« Reply #2 on: October 12, 2015, 06:33:49 PM »
Daniel,

Include the last 2 lines below to fix this issue.

Code: [Select]
        void ganttControl_TemplateApplied(object sender, EventArgs e)
        {
            // While dragging rows, enable dropping as a child of another row.
            this.ganttControl.GanttTable.EnableDropAsChild = true;

            this.ganttControl.SyncRowBackgrounds = true;
            ganttControl.GanttTable.Columns[2].Header = "Start";
            ganttControl.GanttTable.Columns[3].Header = "Finish";

            // Let the gantt know about the columns corresponding to start and finish for it to do some additional validations when these change.
            ganttControl.GanttTable.StartTimeColumnHeaderText = "Start";
            ganttControl.GanttTable.EndTimeColumnHeaderText = "Finish";
        }

Thanks
RQ Support

dniezgoda

  • Customers
  • Newbie
  • *
  • Posts: 18
Re: StartTime&EndTime issue with customized column
« Reply #3 on: October 20, 2015, 02:32:18 AM »
Thank you a lot!