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

Get RadGanttView chart columns width

1 Answer 74 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
JIG
Top achievements
Rank 1
JIG asked on 18 Aug 2016, 02:49 PM

Hi all,

I am working on a WPF application using Telerik and coded in C# .NET.
My following question goes over an ASP .NET page using the model “Code behind” to implement the logic of the page.

Presently, I have a <telerik:RadGridView> for which the scrollbar moves at the same time as the RadGanttView chart scrollbar.

But I am facing to an issue : 

I would like to get the MinorTick actual width and apply it to the RadGridView columns.

I edited a copy of the template of the GanttView in order to find (I hoped) the width value of the MinorTick. I did not find it.

I accessed the MinorTick's Interval and I tried to apply it to the RadGridView columns, but I cannot.

How could I do to have RadGridView columns with the same width as the one from the RadGanttView chart columns ?


Any help or tip will be much appreciated :)

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 23 Aug 2016, 12:14 PM
Hi Marnix,

I'd suggest you take a look at the following topic regarding conversion between pixels and PixelLength property of RadGanttView:
Conversion between Pixels and PixelLength

Since you know the VisibleRange, using this method you could calculate the length of the ticks.

I hope this will be helpful.

Regards,
Yana
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GanttView
Asked by
JIG
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or