See more Support incidents in our old archived forum.
71
WPF Gantt Package / Re: MaxOverlappingBlocksRowCount always returns 1
« Last post by tim on November 23, 2020, 11:29:08 AM »72
WPF Gantt Package / Re: MaxOverlappingBlocksRowCount always returns 1
« Last post by Rajagopal on November 16, 2020, 12:35:26 PM »Jan,
The suggested code changes looks good but we are wondering when these changes might require. We are trying to reproduce the scenario, unfortunately we couldn't. Can you share the reference sample it will speed up the process.
Thanks,
Raja.
The suggested code changes looks good but we are wondering when these changes might require. We are trying to reproduce the scenario, unfortunately we couldn't. Can you share the reference sample it will speed up the process.
Thanks,
Raja.
73
WPF Gantt Package / Re: MaxOverlappingBlocksRowCount always returns 1
« Last post by tim on November 04, 2020, 05:17:19 PM »Raja,
Thank you for the reply.
Please let me know, when the issue is fixed. We need it urgently.
Best regards
Thank you for the reply.
Please let me know, when the issue is fixed. We need it urgently.
Best regards
74
WPF Gantt Package / Re: MaxOverlappingBlocksRowCount always returns 1
« Last post by Rajagopal on November 03, 2020, 06:14:52 PM »Jan,
Thank you for your suggestion. We will consider your changes.
Thanks,
Raja.
Thank you for your suggestion. We will consider your changes.
Thanks,
Raja.
75
WPF Gantt Package / MaxOverlappingBlocksRowCount always returns 1
« Last post by tim on October 29, 2020, 03:48:33 PM »Hello,
we have a FlexyGantt with OverlappedTasksRenderingOptimization="ShrinkHeight" and a RowHeigtConverter. So if some tasks overlap the row height increases.
The user can collapse a row of the gantt via a toggle button.
To do this, TaskListBinding is bound to a CollectionView of the task items and the CollectionView filters all tasks out, resulting in MaxOverlappingBlocksRowCount set to 1.
The problem is that when the user expands the row MaxOverlappingBlocksRowCount is still 1 and the row cannot be calculated with the correct height.
I looked into the code and when the filter of the CollectionView is changed the event OnItemsChanged() in ChartChildren class is fired.
When this.UpdateMaxOverlappingTasksCount() is called, this.blocks is empty and results in MaxOverlappingBlocksRowCount set to 1. The same action is fired when the filter repopulates the CollectionView.
The Microsoft documentation for NotifyCollectionChangedAction.Reset states:
"The contents of the collection changed dramatically."
This means that a large change occurred in the collection and it should be reevaluated completely. This can be a Clear() but it can also be a changing filter.
For a test I added the items again (e.NewItems is null in this case):
This solved my issue, all items get added again when the filter adds them.
Would be great if you could include this fix.
Best regards
we have a FlexyGantt with OverlappedTasksRenderingOptimization="ShrinkHeight" and a RowHeigtConverter. So if some tasks overlap the row height increases.
The user can collapse a row of the gantt via a toggle button.
To do this, TaskListBinding is bound to a CollectionView of the task items and the CollectionView filters all tasks out, resulting in MaxOverlappingBlocksRowCount set to 1.
The problem is that when the user expands the row MaxOverlappingBlocksRowCount is still 1 and the row cannot be calculated with the correct height.
I looked into the code and when the filter of the CollectionView is changed the event OnItemsChanged() in ChartChildren class is fired.
Code: [Select]
else if (e.Action == System.Collections.Specialized.NotifyCollectionChangedAction.Reset)
{
this.blocks.Clear();
}
this.UpdateMaxOverlappingTasksCount();
When this.UpdateMaxOverlappingTasksCount() is called, this.blocks is empty and results in MaxOverlappingBlocksRowCount set to 1. The same action is fired when the filter repopulates the CollectionView.
The Microsoft documentation for NotifyCollectionChangedAction.Reset states:
"The contents of the collection changed dramatically."
This means that a large change occurred in the collection and it should be reevaluated completely. This can be a Clear() but it can also be a changing filter.
For a test I added the items again (e.NewItems is null in this case):
Code: [Select]
else if (e.Action == System.Collections.Specialized.NotifyCollectionChangedAction.Reset)
{
this.blocks.Clear();
//test: readd items
if (tasksPanel != null)
{
foreach (TaskItemControl child in tasksPanel.Children)
this.OnNewEntityAdded(child);
}
}
This solved my issue, all items get added again when the filter adds them.
Would be great if you could include this fix.
Best regards
76
Announcements / Re: Brand New Release: WPF Gantt Package 9.0
« Last post by ForumAdmin on September 27, 2020, 09:00:21 PM »Jan,
We do notify all our license holders on our releases. If you did not get a notification, please let us know, we will update our records. We were a little late on updating the News section, apologies for that.
Thanks
Badri CR
RadiantQ
We do notify all our license holders on our releases. If you did not get a notification, please let us know, we will update our records. We were a little late on updating the News section, apologies for that.
Thanks
Badri CR
RadiantQ
77
WPF Gantt Package / Re: Scrolling in FlexyGantt
« Last post by Rajagopal on August 06, 2020, 01:05:20 PM »Jan,
We have a plan to release before the end of the year. But we are not sure with the requested feature, will try to include it if possible.
Thanks,
Raja
We have a plan to release before the end of the year. But we are not sure with the requested feature, will try to include it if possible.
Thanks,
Raja
78
WPF Gantt Package / Re: Scrolling in FlexyGantt
« Last post by tim on August 03, 2020, 09:52:55 AM »Hi Raja,
is there any timetable for the next release?
Best regards
is there any timetable for the next release?
Best regards
79
WPF Gantt Package / Re: Scrolling in FlexyGantt
« Last post by Rajagopal on July 30, 2020, 04:05:03 PM »Hi Jan,
We have this feature in our Roadmap, there is a complexity to support both Virtualization and Overlapping feature together. Anyway, we will give our best to support it and update you.
Thanks,
Raja
We have this feature in our Roadmap, there is a complexity to support both Virtualization and Overlapping feature together. Anyway, we will give our best to support it and update you.
Thanks,
Raja
80
WPF Gantt Package / Re: Scrolling in FlexyGantt
« Last post by tim on July 29, 2020, 11:57:27 AM »Hi Raja,
thanks for the answer. I did not use ScrollViewer.CanContentScroll in the sample because as far as i know it disables virtualization.
Is it possible to add support for virtualization and overlapping in the future?
Best regards
thanks for the answer. I did not use ScrollViewer.CanContentScroll in the sample because as far as i know it disables virtualization.
Is it possible to add support for virtualization and overlapping in the future?
Best regards