zoom by percentages with the Diagram control

1 Answer 69 Views
Diagram
phil
Top achievements
Rank 1
phil asked on 12 Jun 2021, 10:19 AM
How do I zoom by percentages with the Diagram control so that I could have a dropdown with a list of percentages e.g 25%,50%,75%,100%

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 15 Jun 2021, 04:16 PM

Hello phil,

You can set the zoom level of RadDiagram through the zoom() method of its underlying Kendo UI widget:

https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/diagram/configuration/zoom

For example:

                var diagram = $find("<%=RadDiagram1.ClientID%>").get_kendoWidget();
                diagram.zoom(0.25);
                //diagram.zoom(0.5);
                //diagram.zoom(0.75);
                //diagram.zoom(1);

 

Regards,
Vessy
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Diagram
Asked by
phil
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or