Can Time rulers (in GantView/Timeline) be moved to bottom ?

5 posts, 0 answers
  1. Josias
    Josias avatar
    1 posts
    Member since:
    Jan 2020

    Posted 28 Jan Link to this post

    Hello !

    I was wondering if there is any way to move "time rulers" from the RadGantView or RadTimeline to the bottom (having items above the timeline) ?
  2. Vicky
    Admin
    Vicky avatar
    47 posts

    Posted 30 Jan Link to this post

    Hi Josias,

    I did some investigation and came up with a possible solution that might be the one you are looking for. This solution consists of the following approach: 

    • GanttView - extracting the default template of the GanttItemsPresenter element and modifying the telerik:GanttPresenterPanel.Area property of its children elements. Note that this approach is merely a suggestion which is not well tested and I cannot guarantee that it will work properly in all expected scenarios. 
    • Timeline - extracting the default template of the control and updating the layout order of the TimelineAnnotationsPanel's children elements by modifying their Grid.Row and Grid.RowSpan properties.

    I created a sample project that follows the above approach. It includes both the GanttView and Timeline controls, the required custom styles and templates. It has the Fluent theme applied using implicit styles (NoXaml version of the assemblies).

    Please, find the sample project attached to my reply, give it a try and let me know if it helps.

    Regards,
    Vicky
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Alexandre
    Alexandre avatar
    4 posts
    Member since:
    May 2020

    Posted 04 May Link to this post

    Hi,

    I'm a colleague of Josias.

    I tested the sample you did and in fact the time is on the bottom part. That's not exactly what we are expecting.

    Here is more what we want:

    We want to keep the Title/Start/End header on top as well as its corresponding part in the event panel.

    But we want the time to be displayed on the bottom. I took visuals from a running app and with a "nice" paint I tried to make what we want to achieve.

     

    Cheers,

    Alexandre

  4. Vicky
    Admin
    Vicky avatar
    47 posts

    Posted 07 May Link to this post

    Hello Alexandre,

    Thanks for the provided details and the screenshot.

    The GroupTickContainer (the one displaying the month from the screenshot) and the MajorTickContainer elements (the ones displaying each day of the month) are part of one LogicalCanvasPanel, named TimeRulerPanel. This means, that these containers can only be moved together.

    With that said, the only possible way to move the MajorTickContainers to the bottom is along with the MajorTickContainer (i.e. the whole LogicalCanvasPanel), which is implemented in the sample project I provided earlier.

    Please, do not hesitate to contact me back if there is anything else I can help you with.

    Best Regards,
    Vicky
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
  5. Alexandre
    Alexandre avatar
    4 posts
    Member since:
    May 2020

    Posted 07 May in reply to Vicky Link to this post

    That's what I was indeed thinking after trying to figure out how to do so.

     

    Thanks for your time.

     

    Cheers,

    Alexandre

Back to Top