RadiantQ Forum

Product => Silverlight Gantt Package => Topic started by: dniezgoda on October 11, 2015, 02:50:52 AM

Title: StartTime&EndTime issue with customized column
Post by: dniezgoda 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 (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
Title: Re: StartTime&EndTime issue with customized column
Post by: ForumAdmin on October 12, 2015, 03:59:45 PM
Daniel,

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

Thanks
RQ Support
Title: Re: StartTime&EndTime issue with customized column
Post by: ForumAdmin 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
Title: Re: StartTime&EndTime issue with customized column
Post by: dniezgoda on October 20, 2015, 02:32:18 AM
Thank you a lot!