This is a migrated thread and some comments may be shown as answers.

Reset zoom/control zoom in Radchart

7 Answers 412 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
M. R.
Top achievements
Rank 1
M. R. asked on 14 May 2010, 02:40 PM
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

7 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 19 May 2010, 07:46 AM
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.
0
Adam
Top achievements
Rank 1
answered on 04 Aug 2010, 03:55 PM
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.
0
Giuseppe
Telerik team
answered on 06 Aug 2010, 02:20 PM
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
0
Erik
Top achievements
Rank 1
answered on 10 Feb 2012, 02:34 PM
Link doesn´t work?
0
Giuseppe
Telerik team
answered on 10 Feb 2012, 02:48 PM
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 >>
0
Julio
Top achievements
Rank 1
answered on 28 May 2013, 03:21 PM
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.
0
Rosko
Telerik team
answered on 31 May 2013, 03:11 PM
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.
Tags
Chart (Obsolete)
Asked by
M. R.
Top achievements
Rank 1
Answers by
Ves
Telerik team
Adam
Top achievements
Rank 1
Giuseppe
Telerik team
Erik
Top achievements
Rank 1
Julio
Top achievements
Rank 1
Rosko
Telerik team
Share this question
or