Telerik Forums
UI for WPF Forum
0 answers
36 views

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?

Dmitrii
Top achievements
Rank 1
 updated question on 20 Jun 2023
0 answers
46 views

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.

Jur
Top achievements
Rank 1
 asked on 16 Feb 2023
1 answer
43 views

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!

Dilyan Traykov
Telerik team
 answered on 19 Oct 2022
0 answers
53 views

Good day! Which template is responsible for tooltip while dragging or resizing task? Can we customize this object?

Thank You for answers

Eugeny
Top achievements
Rank 1
 asked on 12 Jul 2022
1 answer
62 views

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. 

 

Dilyan Traykov
Telerik team
 answered on 09 Jun 2022
1 answer
60 views

Hi, is it posible to add a baseline to a Milestone? Such the one in the photo. 

imagen

Martin Ivanov
Telerik team
 answered on 02 Jun 2022
2 answers
75 views

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.

Leire
Top achievements
Rank 1
Iron
Iron
 answered on 01 Jun 2022
1 answer
61 views

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)

Stenly
Telerik team
 answered on 12 May 2022
1 answer
56 views

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

Dilyan Traykov
Telerik team
 answered on 31 Mar 2022
2 answers
58 views

I use the RadGanttView. The GanttView is quit big and it has many items. The items are deletable. So I want to delete them with the DELETE key. I tried to add the "PreviewKeyDown" event and check if the delete Key is klicked. But the event isn't thrown.

<telerik:RadGanttView x:Name="GanttDiagramm" PreviewKeyDown="GanttDiagramm_OnKeyDown">

I use the Office2013 Theme. 

I tried the same with a testproject. There the event is thrown sometimes. But not everytime. Quiet curios.

How can I delete a collection of items with the DEL-Key?

Marco
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 03 Mar 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?