This is a migrated thread and some comments may be shown as answers.

height row of the ganttView Control

3 Answers 140 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Julien
Top achievements
Rank 1
Julien asked on 15 Oct 2013, 01:08 PM
Hello,

I use your framework for one of our projects, to create several custom planning view.

In one of these view, I need to insert timeline in gantView item, which work perfectly.

However, I do not have control of the size of each row (item) of the ganttView. Indeed, the size of row is calculated based on the content of the left column (TreeColumnDefinition and columnDefinition), but not in the real data (DataTemplate of ganttview). The custom data template have not sized fixed but a size depending of number items attached to the timeline (the timeline present in each item of my GanttView).
I  cheat by adding a rectangle in one of my column definition, with the height of this rectangle calculated with the number of item of timeline attached (with a converter). 
The number of item depending of user actions in the view.
it seemed to work perfectly, at the beginning the size is standard, the user add an item, the converter launch, the height of the rectangle increase so the row increase like I expected.
But the contrary is not true, when the user delete an item, the rectangle height decrease, but not the row!

There is other solution to manage better the height of the ganttView Item ? 

Thanks For your response

Sincerely,

Julien Gourdon

PS  : Sorry for my english I'm french

3 Answers, 1 is accepted

Sort by
0
Polya
Telerik team
answered on 17 Oct 2013, 02:32 PM
Hi Julien,

By design the height of a RadGanttView row is equal to the height of the grid area row.

Attached you can find a sample project demonstrating the deletion of a GanttTask child element. The project contains a RadGanttView and a button. In the button_click event handler we perform deletion of the first child of the first GanttTask.

Hopefully this will help you achieve the desired effect.

If however this solution is not suitable for you, I would need some additional information in order to understand the situation in more detail. What modifications did you make to include the rectangle described? How do you perform item deletion and how do you handle the rectangle resize?

Regards,
Polya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Julien
Top achievements
Rank 1
answered on 17 Oct 2013, 03:00 PM
Thanks for your response

My case is more complex.

for you to understand, I update your project, you can download it here : project  (I put it in .NET 4.5)

launch the application, and put a size in the textBox at bottom (for example 80). You see the height of row increase due to the rectangle (in blue to see it if you scroll). But if after you put 20, you see the rectangle decrease (the blue bar have an height of 20), but not the row.

I need these functionality because I use custom Items in the gantView.

Thanks,

Gourdon Julien
0
Polya
Telerik team
answered on 22 Oct 2013, 09:35 AM
Hi Julien,

The height of a RadGanttView can only be increased. This is by design for rendering optimization purposes.

However, I've added your feature request in our PITS. You can vote for it here. This will raise its priority in our to-do list.

Regards,
Polya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Martin Ivanov
Telerik team
commented on 27 Jun 2023, 11:49 AM

The PITS portal no longer exists. This feature request can be found here: 
https://feedback.telerik.com/wpf/1350464-ganttview-provide-option-to-set-custom-row-height

 

Tags
GanttView
Asked by
Julien
Top achievements
Rank 1
Answers by
Polya
Telerik team
Julien
Top achievements
Rank 1
Share this question
or