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

GanttView: Updated GridViewPart Columns Width

2 Answers 207 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Paulo
Top achievements
Rank 1
Paulo asked on 10 Oct 2016, 04:51 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Polya
Telerik team
answered on 11 Oct 2016, 04:05 PM
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.
0
Paulo
Top achievements
Rank 1
answered on 12 Oct 2016, 01:08 PM
Ok, looks like it works! Thanks
Tags
GanttView
Asked by
Paulo
Top achievements
Rank 1
Answers by
Polya
Telerik team
Paulo
Top achievements
Rank 1
Share this question
or