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"?
Hello,
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.
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.