RadChart and RadSlider Integration

Thread is closed for posting
2 posts, 0 answers
  1. dingjing
    dingjing avatar
    42 posts
    Member since:
    Jul 2007

    Posted 26 Jul 2010 Link to this post

    Requirements

    RadControls version 2010.2.713.40

    .NET version 4.0

    Visual Studio version 2010

    programming language C#

    browser support

    all browsers supported by RadControls


    PROJECT DESCRIPTION
    RadChart has built-in support for zooming and scrolling. However, "the zooming precision in some scenarios seems to be a bit off" as discussed in this forum thread. When it happens, it is very confusing for end users.

    To prevent the scenarios from happening, I turned on scrolling but turned off zooming. I put a range-enabled RadSlider underneath the chart to control zooming. It is pretty straightforward to set the chart's scale while a user drags the slider's handles, because the slider has several client- and server-events you can hook your code. It is challenging, however, to synchronize the slide's drag handles' positions when a user scrolls the chart, because the chart doesn't expose any scrolling events.

    The attached demo project uses a hack to capture a RadChart's scrolling event. Therefore, I am able to synchronize the slider's drag handles' positions with the chart's scrolling offset.
  2. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 27 Jul 2010 Link to this post

    Hello dingjing,

    Thank you for submitting this application. I have transferred it to a forum post, so that other users can benefit from it as well.
    I have updated your Telerik points for your involvement.

    All the best,
    Yavor
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top