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

Recovering zoom level after the post back.

1 Answer 35 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Ahmet
Top achievements
Rank 1
Ahmet asked on 23 Aug 2018, 04:49 PM

Hello

 

When I zoom into my html chart by drawing a box, is there a property that I can use to get the zoom levels? 

In other words, let's say I zoomed into the graph by drawing a box, but I needed to do something else on the graph so I needed to post-back, graph is rebuilt but unzoomed. I need to be able to get the previous zoom levels so that I can recover the zoom. 

 

Thanks !

 

 

Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 23 Aug 2018, 05:41 PM
Hi Ahmet,

I'd recommend using AJAX (partial page rendering) so that you don't dispose the chart.

If that's not an option, you can store the current state of the chart (shown in your previous threads "Determining the range of the X and Y axis after Zoom" and "Zooming out a chart programmatically"), and restore it after the postback by basically repeating the zoom operation/logic.


Regards,
Marin Bratanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Chart (HTML5)
Asked by
Ahmet
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or