GanttView Zoom and/or setting time intrements

2 posts, 0 answers
  1. Chris
    Chris avatar
    3 posts
    Member since:
    Jan 2017

    Posted 25 Jan 2017 Link to this post

    New to GanttView and was wondering how I can change the right hand side to display from days to minutes or years depending on the application.

    also, it would be nice to integrate a zoom capability. is there an option that will allow a user to zoom in and out on the right hand panel of the ganttview. thanks


  2. Lance | Tech Support Engineer, Sr.
    Lance | Tech Support Engineer, Sr. avatar
    561 posts

    Posted 25 Jan 2017 Link to this post

    Hello Chris,

    You can indeed configure the RadGanttView's time ruler to your needs, this section in the documentation will guide you.

    If you're looking to create more advanced scenario, like a deadline in the time ruler, we have a couple tutorials, look in the left column here for the "How To" folder.

    Regarding Zoom

    We demonstrate this in the "GanttView First Look"  demo found in the Product Demo app.  In the Example.xaml, find the RadSlider in the ribbon on line 431 and SliderValue in ViewModel.cs on line 47. This changes the PixelLength value of the GanttView. Attached is a screenshot of the UI.

    For future reference, there are two ways to explore the demos:

    • GitHub SDK repository: A repository with developer focused examples for most Telerik WPF controls. You can also use the SDK Sample Browser to easily explore and run the examples.
    • Product Demos: An application that showcases the Telerik WPF products in different user scenarios.

    I highly recommend checking out the SDK Explorer Sample Browser as it lets you open individual demos in Visual Studio without the overhead of opening the entire demo solution. I recorded a quick video of using the Samples Browser for you.

    I hope this answers your questions today. If you have any further issues, I recommend opening a Support Ticket instead of a forum post, a ticket carries a guaranteed response from the UI for WPF support team.

    Lance | Tech Support Engineer, Sr.
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top