Pan and Zoom Bars not in sync

4 posts, 0 answers
  1. Terry
    Terry avatar
    13 posts
    Member since:
    Nov 2010

    Posted 08 Mar 2013 Link to this post

    If the ChartPanAndZoomBehavior is changed after the chart has been constructed then the Pan and Zoom bars on the chart are not updated to reflect the new behavior.

    For example, the chart is constructed with a pan and zoom behavior set to allow both panning and zooming. Later, based on user interaction, the original pan and zoom behavior is removed and a new pan and zoom behavior that only allows panning is added. The user can no longer use the mouse to draw a rectangle to zoom the chart but the pan and zoom bars still have handles that let the user zoom.

    Is there a way to get the pan and zoom bars to update to match the pan and zoom behavior?

    Terry
  2. Petar Kirov
    Admin
    Petar Kirov avatar
    425 posts

    Posted 13 Mar 2013 Link to this post

    Hi Terry,

    Thanks for reporting this problem. I have managed to reproduce it. To workaround it, simply change the PanMode and ZoomMode of the existing behavior, instead of removing it and adding a new one.

    I have updated your Telerik points.
     

    Regards,
    Petar Kirov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Terry
    Terry avatar
    13 posts
    Member since:
    Nov 2010

    Posted 13 Mar 2013 Link to this post

    Hi Petar,

    Thanks for your response. There is still an issue with the display when you change the ZoomMode. When ZoomMode is set from None to Both and the vertical bar reaches to the very top and the horizontal bar reaches to the very right then the zoom handles are missing at the top and right. See attached picture.

    If I resize the window then the bars are properly drawn. Is there a way in code to get the bars to redraw?

    On a related note I've found that changing the PanZoomBarStyle on an axis after the chart has been constructed doesn't take effect. The style remains as was set when the chart was constructed.

    What I'd like to do on a graph showing live data is to initially have a chart Zoom and PanOffset set to show only a portion of the latest underlying live data but not let the user pan or zoom around. Then when the user pauses the display of live data the user would be able to fully pan and zoom around all the live data currently available in the chart.

    Terry
  5. Petar Kirov
    Admin
    Petar Kirov avatar
    425 posts

    Posted 18 Mar 2013 Link to this post

    Hi Tery,

    Thanks for the feedback. I have notified our development team about these issues.

    We are sorry for the inconvenience caused.
     
    All the best,
    Petar Kirov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top