Get RadGanttView chart columns width

2 posts, 0 answers
  1. CreoniX
    CreoniX avatar
    58 posts
    Member since:
    Sep 2009

    Posted 18 Aug 2016 Link to this post

    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 :)

  2. Yana
    Yana avatar
    4604 posts

    Posted 23 Aug 2016 Link to this post

    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.

    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top