Hello
Richard,
The sample project I sent is not fully implemented - I left the check when to scroll to the previous item to be implemented by you.
If, however the desired scenario is to disable scrolling on selection whatsoever I can suggest a better solution:
Internally the
RadGanttView contains 3 ScrollBars - 2 horizontal ( for the GridView part and for the TimeRuler part ) and 1 vertical.
1) We can get these ScrollBars using the
RadGanttView.ChildrenOfType<ScrollBar>() method.
2) Also we can handle the
ScrollBar.Scroll event that is called only when the user scrolls using the thumb and store the
Value of the TimeRuler horizontal ScrollBar.
3) Then in the RadGanttView_SelectionChanged event handler we can scroll the TimeRuler ScrollBar to the stored value from step 2.
This way visually it would appear as if no scroll is performed whatsoever.
Please find attached the modified project using this approach.
Hopefully this helps and is suitable for your scenario.
Regards,
Polya
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.