height row of the ganttView Control

4 posts, 0 answers
  1. Julien
    Julien avatar
    20 posts
    Member since:
    Oct 2013

    Posted 15 Oct 2013 Link to this post

    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
  2. Polya
    Admin
    Polya avatar
    199 posts

    Posted 17 Oct 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Julien
    Julien avatar
    20 posts
    Member since:
    Oct 2013

    Posted 17 Oct 2013 Link to this post

    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
  5. Polya
    Admin
    Polya avatar
    199 posts

    Posted 22 Oct 2013 Link to this post

    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 >>
Back to Top