Reset zoom/control zoom in Radchart

Thread is closed for posting
8 posts, 0 answers
  1. M. R.
    M. R. avatar
    49 posts
    Member since:
    Dec 2009

    Posted 14 May 2010 Link to this post

    Hello,

    I have a Radchart with zooming feature enabled. Is there a way to:

    1. Programmatically reset zoomed chart so that if reverses to the original state
    2. Set a zoom limit. For example prevent uset to zoom more than 200%

    Thank you,
    M. Rusu
  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 19 May 2010 Link to this post

    Hello,

    Please, find below my reply provided in the support ticket you have started:

    RadChart exposes a client side method -- resetZoom. Please, find it described here. Unfortunately, there is no easy way to limit the chart zoom level.

    Best regards,
    Ves
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Adam
    Adam avatar
    2 posts
    Member since:
    Jun 2010

    Posted 04 Aug 2010 Link to this post

    Telerik ..Have you considered the idea of 'double-clicking' the zoom slider to reset it.
    It feels obvious and natural functionally from a user perspective.
  5. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 06 Aug 2010 Link to this post

    Hello Adam,

    Thank you for contacting us.

    We will forward your feedback to our developers for further consideration.


    Greetings,
    Freddie
    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
  6. Erik
    Erik avatar
    8 posts
    Member since:
    Jan 2012

    Posted 10 Feb 2012 Link to this post

    Link doesn´t work?
  7. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 10 Feb 2012 Link to this post

    Hello Erik,

    Here is the working link: http://www.telerik.com/help/aspnet-ajax/radchart-client-side-api.html.


    Kind regards,
    Giuseppe
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  8. Julio
    Julio avatar
    6 posts
    Member since:
    May 2013

    Posted 28 May 2013 Link to this post

    Hi, is there a way in client-side to show a button inside the radchart to reset zoom only when the user has zoomed in and when the button has been used it disappears? thanks.
  9. Rosko
    Admin
    Rosko avatar
    137 posts

    Posted 31 May 2013 Link to this post

    Hi Julio,

    You can do that in javascript. In the following example code, you can reset the zoom with javascript. In the same function you can disable/hide the button.

    <body>
        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager" runat="server" />
        <telerik:RadChart SkinsOverrideStyles="false" Width="1600" Height="600" SeriesOrientation="Vertical"
            ID="RadChart1" runat="server">
            <ClientSettings ScrollMode="Both" />
            <ChartTitle Appearance-Dimensions-Height="30">
            </ChartTitle>    
            
        </telerik:RadChart>
        <asp:Button runat="server" Text="Reset" ID="ResetZoom"  OnClientClick="resetZoom(); return false" />
     
        <script type="text/javascript">      
     
            function resetZoom()
            {           
                var chart1 = $find("<%=RadChart1.ClientID%>");           
                chart1.resetZoom();
            }
         
        </script>
     
        </form>
    </body>
     



    Regards, Rosko
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017