<Style TargetType="telerik:SimpleTreeCellContainer">
<Setter Property="Background" Value="{Binding DataItem.DataItem.Background}" /> <!-- where Background is a custom property a custom GanttTask implementation -->
</Style>
<telerik:RadGanttView.Resources>
<Style TargetType="telerik:SimpleTreeCellContainer">
<EventSetter Event="Loaded" Handler="SimpleTreeCellContainer_Loaded" />
</Style>
</telerik:RadGanttView.Resources>
private void SimpleTreeCellContainer_Loaded(object sender, RoutedEventArgs e)
{
var container = (SimpleTreeCellContainer)sender;
var cellInfo = (CellInfo)container.DataItem;
var task = (CustomTask)cellInfo.DataItem;
container.Background = task.Background;
}
Add functionality to sort the data in RadGanttView similar to the sorting feature of RadGridView.
Currently, you can use the approach shown in the GridSorting SDK example.
By design, RadGanttView supports only one task per row. We could provide a way to allow several tasks on a single row. A possible workaround is demonstrated in the SameRowRecurringTask SDK example in our GitHub repository. This project demonstrates how to implement a 'recurring' Task on the same row.
I have combined these two requests in a single ticket as I feel that they are closely linked, and the second does not make much sense without the first.
Stretch option for Gantt task visualisation
It would be very useful if the user could specify a 'stretch' option for the horizontal width of the Gantt which causes the task visualisation to fill all of the available space (by increasing the PixelLength). The Gantt chart looks very strange when a fixed PixelLength results in a large amount of empty space, particularly as most other containers can be resized. It can also be difficult to guarantee that the Gantt chart fills all available space when it is inside a resizable component.
Ability to move resize control when both sides are at their 'desired width'
Currently, the resize control which separates the column data on the left from the visualisation of the gantt tasks on the right cannot be moved when both sides have reached their 'desired width'. However, this is not intuitive as other types of Telerik controls (notably the GridView) allow the width of components to be increased or decreased by clicking and dragging left/right, even if an absolute width has been set in the XAML.
Anticipated behaviour:
I recognise that these features may not be desirable for all users, so it would be helpful if these were features that could be toggled on/off.
Hi,
I have recently been trying to implement a "split tasks" feature you would find in common Gantt packages, but Telerik doesn't support this out of the box. It would be great if this was supported, as modifying it ourselves comes with some level of risk, and may also be affected when we upgrade between versions.
Thanks.
Look the attach file,when resize the GanttView column (left or right) reciprocation,the colum resize line is not align to the grid column line. just when the DPI is exceed 100%, Appears.
The selection shown in the exported image is wrong in some cases. This is reproducible when you select multiple items (more than 2). To work this around you can clear the selection before the export and then re-select the items. To do this you can use the SelectedItems collection of the RadGanttView control.
Add the possibility of TimeRuler's TickIntervals to respect the CurrentUICulture's time format.
The height of the GroupTickContainter, MajorTickContainter, MonorTickContainter cannot be changed at present.