RadiantQ Forum
Product => WPF Gantt Package => Topic started by: tim on May 07, 2015, 09:16:28 AM
-
Hello RadiantQ-Team,
we got an issue with the Property "MaxOverlappingBlocksRowCount". Sometimes after drag'n'drop operations the value of this property is wrong (too high) and is duplicated with each further drag'n'drop operation.
I narrowed it down to the method AddEntity(TaskItemControl) on the class ChartChildren:
public void AddEntity(TaskItemControl newEntity)
{
this.Entities.Add(newEntity);
this.UpdateTimeLength();
}
My fix is to check if "this.Entities already contains the "newEntity". I noticed that with each "duplication" the same entities that were already existing in "this.Entities" were added again.
public void AddEntity(TaskItemControl newEntity)
{
if (!this.Entities.Contains(newEntity))
{
this.Entities.Add(newEntity);
this.UpdateTimeLength();
}
}
The callstack leading to this is following:
RadiantQ.GanttControls.WPF.dll!RadiantQ.Windows.Controls.FlexyGantt.OverlappingBlock.AddEntity(RadiantQ.Windows.Controls.FlexyGantt.TaskItemControl newEntity) Zeile 2769 C#
RadiantQ.GanttControls.WPF.dll!RadiantQ.Windows.Controls.FlexyGantt.TasksListControl.OnNewEntityAdded(RadiantQ.Windows.Controls.FlexyGantt.TaskItemControl entity) Zeile 600 C#
RadiantQ.GanttControls.WPF.dll!RadiantQ.Windows.Controls.FlexyGantt.TasksListControl.BlockIntact(RadiantQ.Windows.Controls.FlexyGantt.OverlappingBlock[] blocksList) Zeile 537 C#
RadiantQ.GanttControls.WPF.dll!RadiantQ.Windows.Controls.FlexyGantt.TaskItemControl.EndUpdateOverlapTasks() Zeile 1737 C#
RadiantQ.GanttControls.WPF.dll!RadiantQ.Windows.Controls.FlexyGantt.TaskItemControl.DragThumb_DragCompleted(object sender, System.Windows.Controls.Primitives.DragCompletedEventArgs e) Zeile 1718 C#
I hope you can include this fix in your next release :)
Greetings,
Jan
-
Jan,
Thanks for pointing out this issue and suggesting fix for it, we are working on this, will update you soon.
Thanks,
Amar
-
Jan,
We have made the changes which you have suggested and it should be come along with our next release. We can send you an updated version right away if necessary.
Thanks,
Amar
-
Amar,
it would be really nice to get an updated version before the next release :)
Thanks,
Jan
-
Jan,
We have sent you an updated assembly, could you please conform the fix?
Thanks,
Amar
-
Sorry, I forgot to reply.
Yes, the fix works great.
Thank you.