The Gantt view seems to scroll horizontally in a very strange way. It doesn't allow you to scroll the entire width of the project and stops at either margin and then you need to grab the scroll bar again and go more. Is there anyway to have it scroll as I think most people would expect it to scroll which is across the entire project timeline width without having to do it in "chunks"?
I didn't think the original question quite got answered, i.e. that the gantt "doesn't allow you to scroll the entire width of the project and stops at either margin and then you need to grab the scroll bar again and go more",
So I asked the question again here: http://ko.infragistics.com/community/forums/t/89137.aspx and on that thread Michael clearly states that "Dragging the horizontal scrollbar left or right will not bring you to the beginning or end of a particular task because isn't a correlation between the scrollbar and the tasks displayed by the control". I'm assuming that also means it doesn't correlate to a particular time range, which I think is the answer to your original question?
I think that's not the behaviour most users would expect (or certainly those coming from MS Project or Suretrack/P1 etc), so I've added a feature request here: http://ideas.infragistics.com/forums/192359-windows-forms/suggestions/5818498-add-a-scroll-mode-to-the-winganttview. Give it a vote if this is what you are looking for too?
Cheers, Tom
I can confirm that's a typo. this code will cause scrolling by a week when you click the arrows, and scrolling by a month when you click in the scroll track:
Me.UltraGanttView1.TimelineSettings.HorizontalScrollSettings.SmallChange = TimeSpan.FromDays(7) Me.UltraGanttView1.TimelineSettings.HorizontalScrollSettings.LargeChange = TimeSpan.FromDays(30)
Thanks for this info. I was wondering though if in the code sample you provided, you meant to say "former to 1 day and the latter to 2 days" when the code seems to show a timespan of 30 days for the former. I'm assuming a typo, please let me know otherwise.
Hello,
I am just checking about the progress of this issue. Let me know if you need my further assistance on this issue.
Thank you for using Infragistics Components.
Thank you for contacting Infragistics Developer support.
What do you mean by “doesn't allow you to scroll the entire width of the project”? The UltraGanttView is able to scroll between the MinDate and MaxDate of the UltraCalendarInfo and the scrollbar scrolls by cycle of the primary interval if you use the mouse scroll or the scroll arrows and by one “logical page” if you click on the scroll track. As for what you could do to change the scrolling behavior of the horizontal scrollbar is to use the HorizontalScrollSettings property of the TimelineSettings of the UltraGanttView. From this property you can change how much the UltraGanttView scrolls if the user clicks the arrow and how it scrolls if the user clicks the scroll track. The following code will set the former to 1 day and the latter to 2 days.
ultraGanttView1.TimelineSettings.HorizontalScrollSettings.SmallChange = TimeSpan.FromDays(30);
ultraGanttView1.TimelineSettings.HorizontalScrollSettings.LargeChange = TimeSpan.FromDays(2);
This way you can tweak the control until you achieve the desired feel. For more information on this property please visit this link:
http://help.infragistics.com/Doc/WinForms/2013.2/CLR4.0/?page=Infragistics4.Win.UltraWinSchedule.v13.2~Infragistics.Win.UltraWinSchedule.UltraTimelineView~HorizontalScrollSettings.html
If this isn’t what you are looking for, please provide a small sample, which demonstrates your issue.
I am looking forward to your reply.