Maintain Zoom View

2 posts, 0 answers
  1. Shawn
    Shawn avatar
    22 posts
    Member since:
    Jul 2011

    Posted 26 Mar 2012 Link to this post


    I'm using the TimeLine in a live data application I'm working on. In the same application I'm also using the ChartView control. I love the way the ChartView's zooming works when it maintains the zoom location when the user sets it even as more data is added to the chart. Is there a way to keep the TimeLine's zoom location as more data is added?

    Thank you,
  2. Petar Marchev
    Petar Marchev avatar
    996 posts

    Posted 29 Mar 2012 Link to this post

    Hi Shawn,

    The RadChartView and RadTimeLine are controls that are different in nature and implementation. The chart view uses a pan and zoom feature (which allows this behavior that you describe) whilst the time line needs to be told exact values (VisiblePeriodStart and VisiblePeriodEnd).

    In short - this can not be achieved with out-of-the-box means. However I think that you might be able to get these results manually. I am not familiar with your scenario but may be you can manually calculate (when a new item is inserted) the new values for VisiblePeriodStart and VisiblePeriodEnd.

    I have attached a simple project that should get you started.

    Petar Marchev
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top