Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
Windows forms gantt view horizontal scrolling issue
posted

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"?

Parents
No Data
Reply
  • 23930
    Offline posted

    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.

Children