We would like to change the color of the highlighted items (i.e., HighlightedItemsSource) in the RadGanttView.
I know this is possible by copying and customizing the ControlTemplate, but I would like to avoid that if possible since I would need to do that for all the different types of containers.
I also know it's possible to change the color in the theme (we're using Office2019), but unfortunately, the template uses ValidationBrush for these highlights and we still want the validation to show as red in other areas of our application.
Is there any other way to change the color of the highlighted items?
Hello! I have a RadGanttView with custom columns (which can be switched on and off on fly). The problem is that after any interaction with this control GridView part shows horizontal scroll bar, but splitter doesn't go right although there is more than enough space to resize (Picture 1).
It doesn't really matter how many columns are there - GridView resizes itself to be a bit smaller than enough to fit all the columns and doesn't expand anymore (Picture 2), leaving at least 0.5 cm of free space on the right (on 17" FullHD display) (Picture 3).
At the same time there is no problem with shrinking, it's possible to move splitter to the left until GridVIew part becomes completely invisible.
Thanks, Dmitrii
UPD: I've checked variables in Dynamic Visual Tree and found that ExtentWidth of TreeRenderingPanel element is always 3 units more than needed. Is there a way to fix this?
Hi there!
I would like to customize the header of GanttChart timeline, like
if it is WeekView, "2023/2" in 1st line and "1" , "8" (← it will be the first day of week) in 2nd line or
if it is MonthlyView, "2023/Q1" in 1st line and "2", "3" (← it will be the month number like "2" means Feburay) in 2nd line.
let me know how should I customize to that.
I think that I should use "Views.MonthView.MonthHeaderTemplate" function, but I have no idea how I used it.
I found this API from this following link, but I can't get detail info because it had died.
ASP.NET MVC Gantt - API Reference - Telerik UI for ASP.NET MVC
Could you please share me if there is any link in which explaination for gantt API info, how to use or which parameter should be passed.
Hi,
I'm trying to create a custom component that inherits from RadGanttView, but I'm not sure what the intended workflow is intended to be. Namely to set my columns, rows, taskssource,... up. Here are the steps that I took:
1- Create a "CustomGantt.cs" class that inherits from RadGanttView
2- Create a Generic.xaml file. Within that file, create a style that targets CustomGantt and is based on the default RadGanttViewStyle
3- Add said Generic.xaml file to my App.Resources
Now I can add my CustomGantt control to any of my views, and it does display a Gantt as intended, however, this, is not enough as I've yet to define my columns, rows, source,.... But I'm unsure of what the best way to do that is supposed to be. Should I create a ControlTemplate within my Generic.xaml file in which I add a RadGanttView that I can then set up?
Thanks a lot for your help!
Good day! Which template is responsible for tooltip while dragging or resizing task? Can we customize this object?
Thank You for answers
Hi, I wanted to know if it's possible to change the color of tasks in the colum area. In my case, I need to put colum background on blue if the task has a children. I put an example below of how I want to be the result.
Hi, is it posible to add a baseline to a Milestone? Such the one in the photo.
Hello,
I want to know if its possible to update Gantt Tasks when you change a Start Date or End Date from the Grid View part. For example, if I delay Proptotype Task, all the task behind should be delayed the same time as Prototype.
Hi,
Is there any way I can select (clicking on) relationships in a RadGanttView so I can remove the relation between two tasks? (whether it's with right click -> delete or with a RadRibbonButton)
I want to create a overview where all my 200+ tasks can be seen at one view. To do this, I wanted to make my row height to 5 pixels. So I added this code to my usercontrol:
<system:Double x:Key="RowHeight">5</system:Double><Style TargetType="telerik:EventContainer" BasedOn="{StaticResource EventContainerStyle}">
<Setter Property="MaxHeight" Value="{StaticResource RowHeight}" />
<Setter Property="MinHeight" Value="{StaticResource RowHeight}" />
</Style><Style TargetType="telerik:MilestoneContainer" BasedOn="{StaticResource MilestoneContainerStyle}">
<Setter Property="MaxHeight" Value="{StaticResource RowHeight}" />
<Setter Property="MinHeight" Value="{StaticResource RowHeight}" />
</Style><Style TargetType="telerik:SimpleCellContainer" BasedOn="{StaticResource SimpleCellContainerStyle}">
<Setter Property="MaxHeight" Value="{StaticResource RowHeight}" />
<Setter Property="MinHeight" Value="{StaticResource RowHeight}" />
</Style><Style TargetType="telerik:CellContainer" BasedOn="{StaticResource CellContainerStyle}">
<Setter Property="MaxHeight" Value="{StaticResource RowHeight}" />
<Setter Property="MinHeight" Value="{StaticResource RowHeight}" />
<Setter Property="Padding" Value="0" />
</Style><Style TargetType="telerik:CellEditingContainer" BasedOn="{StaticResource CellEditingContainerStyle}">
<Setter Property="MaxHeight" Value="{StaticResource RowHeight}" />
<Setter Property="MinHeight" Value="{StaticResource RowHeight}" />
</Style><Style TargetType="telerik:SimpleTreeCellContainer" BasedOn="{StaticResource SimpleTreeCellContainerStyle}">
<Setter Property="MaxHeight" Value="{StaticResource RowHeight}" />
<Setter Property="MinHeight" Value="{StaticResource RowHeight}" />
</Style><Style TargetType="telerik:DragResizeSlotHighlightContainer" BasedOn="{StaticResource DragResizeSlotHighlightContainerStyle}">
<Setter Property="MaxHeight" Value="{StaticResource RowHeight}" />
<Setter Property="MinHeight" Value="{StaticResource RowHeight}" />
</Style><Style TargetType="telerik:CellHighlightContainer" BasedOn="{StaticResource CellHighlightContainerStyle}">
<Setter Property="MaxHeight" Value="{StaticResource RowHeight}" />
<Setter Property="MinHeight" Value="{StaticResource RowHeight}" />
</Style><Style TargetType="telerik:TreeCellHighlightContainer" BasedOn="{StaticResource TreeCellHighlightContainerStyle}">
<Setter Property="MaxHeight" Value="{StaticResource RowHeight}" />
<Setter Property="MinHeight" Value="{StaticResource RowHeight}" />
</Style><Style TargetType="telerik:TreeCellEditingContainer" BasedOn="{StaticResource TreeCellEditingContainerStyle}">
<Setter Property="MaxHeight" Value="{StaticResource RowHeight}" />
<Setter Property="MinHeight" Value="{StaticResource RowHeight}" />
</Style><Style TargetType="telerik:TreeCellContainer" BasedOn="{StaticResource TreeCellContainerStyle}">
<Setter Property="MaxHeight" Value="{StaticResource RowHeight}" />
<Setter Property="MinHeight" Value="{StaticResource RowHeight}" />
</Style>
But the height is only changed on the EventContainer, not the full row:
How can I change the full row height?
Thanks.
Regards, Marco