I have GanttView. When I click on empty space of timeline I need scroll to task on this row. How I can do this?
1 Answer, 1 is accepted
answered on 05 Feb 2015, 08:54 AM
In order to achieve that we need to:
1) Add a MouseLeftButtonDown event handler to the BorderContainer (that is used as a placeholder for the row). Note that if you have SpecialSlotContainers you need to add the same handler to them as well because they are drawn on top of the BorderContainers.
EventManager.RegisterClassHandler(typeof(BorderContainer), UIElement.MouseDownEvent, new MouseButtonEventHandler(OnMouseDown), true);
2) Implement the method FlattenSource that flattens the TasksSource of the RadGanttView in an IEnumerable<IGanttTask> and takes into account whether the GanttTasks are expanded or collapsed to extract the correct GanttTask corresponding to the BorderInfo.CellCoordinates.Start.