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

Automatic zoom in Raddiagram

1 Answer 97 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Maite
Top achievements
Rank 1
Maite asked on 02 Oct 2014, 03:30 PM
I need that my Diagram makes zoom and it occupies all Grid where is stayed when I execute my application. I have saved the coordinates of shapes in a database, but these coordinates correspond to one type of screen, and if someone execute the application in an other screen to other size, I want that the Diagram makes zoom automatic to fill all screen. It's possible?

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 07 Oct 2014, 09:46 AM
Hi Maite,

I am don't think I completely understand your requirement. Can you please send over a drawing with the current and the desired result? This will help me in better understanding your scenario and assist you further.

Note that the diagram coordinate system is independent from the screen size.

In the meantime you can take a look at the BringIntoView() method of the diagram which have few overloads. One of them accepts as an argument an rectangle that determines the new ViewPort of the diagram, which you can calculate based on the screen resolution or any other factor. 

Regards,
Martin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Diagram
Asked by
Maite
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or