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

Not able to re-size a diagram shape above 10000

3 Answers 34 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Jeevan
Top achievements
Rank 1
Jeevan asked on 05 May 2014, 05:30 AM
Hi 

We are using Diagram control and have Diagramshape inside this control. Now when we try to re-size this shape using SettingsPane the maximum width and height of the shape can reach only up to 10,000 and does not go beyond that.
Is there some way by which we can get rid of any restriction on the size of diagramshape using SettingsPane.

Regards
JC

3 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 06 May 2014, 12:38 PM
Hello Jeevan,

We have set this limitation for performance purposes. If you set very big width / height to a Shape (which might happen by mistake , fast type in SettingsPane) the application might freeze. This issue actaully can be reproduced with setting big width / height to a Path which has StrokeDashArray set to "1 0".

Could you please elaborate a bit more on your scenario ? Do you really need to set Sizes bigger than 10000 x 10000 ?

Regards,
Petar Mladenov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Jeevan
Top achievements
Rank 1
answered on 12 May 2014, 05:50 AM
Hi Petar

Thanks for the reply. Our application deals with images of sizes in the range of 50k x 50k or more. The application can see these images at different zoom levels. So at a particular time may be user will be able to look at the entire image at a smaller zoom (scale) value or only a part of image at a larger zoom value.
So is there some way that I can use DiagramShape with this.

Regards
Jeevan


0
Petar Mladenov
Telerik team
answered on 12 May 2014, 04:52 PM
Hello Jeevam,

As I managed to understand, you have very big images but they not initially shown with their original sizes in the DiagramShapes. If so and if the issue may occur only when the Diagram is zoomed in, please note that zooming in Diagram will only create a ScaleTransform and will not change the Size of the DiagramItems.

However, you can edit the default style of DiagramSettingsPane and update the NumericUpdown controls to increase their Maximum property which is set to 10000.

Regards,
Petar Mladenov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Diagram
Asked by
Jeevan
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Jeevan
Top achievements
Rank 1
Share this question
or