GanttView: Updated GridViewPart Columns Width

3 posts, 1 answers
  1. Paulo
    Paulo avatar
    2 posts
    Member since:
    May 2016

    Posted 10 Oct Link to this post

    If i setup a GanttView with some columns with a width of 100, then I'm unable to get the actual width of a column after the user resizes it; seems to always return the original '100' value. Is there some way of retrieving the updated width of these columns?
  2. Answer
    Polya
    Admin
    Polya avatar
    200 posts

    Posted 11 Oct Link to this post

    Hi Paulo,

    We are aware of the described issue regarding the ColumnDefinition.Width not updating its value when changed (via resizing for example). It is logged it in our Feedback Portal where you can track its progress:
    https://feedback.telerik.com/Project/143/Feedback/Details/132152-ganttview-changing-columndefinition-width-at-runtime-does-not-change-the-width-o

    If you wish to extract the width of the column definitions, I can only suggest finding the column header containers that are children of the RadGanttView and get their ActualWidth property. I've prepared a sample project demonstrating this - you can find it attached.

    Regards,
    Polya
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Paulo
    Paulo avatar
    2 posts
    Member since:
    May 2016

    Posted 12 Oct Link to this post

    Ok, looks like it works! Thanks
Back to Top