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

Zooming out not satisfactory

5 Answers 152 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Kristoffer
Top achievements
Rank 1
Kristoffer asked on 10 Apr 2013, 07:28 AM
When I AutoFit() my diagram, I want all nodes to be visible on screen. However, this is impossible when the diagram is too large. The zooming restriction gets in the way.

I want to be able to zoom out until all nodes are visible on screen, no matter the size of the diagram! It doesn't matter if the rendering of the nodes suffers. In a complex diagram, I must be able to see all nodes to get an overview of its structure. This is absolutely crucial for our application so please provide us with a patch/workaround! Thanks.

I really don't understand why the zooming works this way. I get the same result if I set the Zoom to 0.1 or 0.05...

5 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 10 Apr 2013, 08:25 AM
Hi Kristoffer,

Zoom property internally is coerced to a valid value. A valid value mean that it should be greater than zero and not infinity or NaN. In addition, RadDiagram performs a secondary coerce in order to support custom business scenarios (for example you could probably would like to restrict the users to zoom more than four times). The second coerce trims the value between DiagramConstants.MinimumZoom and DiagramConstants.MaximumZoom values.
Having that said, you could set the DiagramConstants.MinimumZoom to a really small (but greater than zero value). A value of 0.001 for DiagramConstants.MinimumZoom means that you will be able to zoom out to a factor of thousand.

Hope this helps. Please let us know if you need more info on the topic.
Furthermore, it looks like you are using RadDiagram in quite complex scenario. We will be very glad if you share your comments (expectations of how the zoom out should work) in order to improve the zooming behavior? 

Kind regards,
Hristo
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Kristoffer
Top achievements
Rank 1
answered on 10 Apr 2013, 08:46 AM
Hi,

Thanks. Setting these constants pretty much did the trick:

DiagramConstants.ZoomFactor = 0.1;
DiagramConstants.MinimumZoom = 0.1;

However, when zooming using the scroll wheel it seems that the zoom steps are independent of the current zoom. This yields clumsy zooming when zoomed out. I believe you should perform the step-wise zooming in this way:

ZoomOut => Zoom - (ZoomFactor * Zoom)
ZoomIn => Zoom + (ZoomFactor * Zoom)


This is what most image viewers use, and I think this would suit your diagram control too.
0
Hristo
Telerik team
answered on 15 Apr 2013, 09:59 AM
Hello Kristoffer,

Thank you very much about the feedback. I was afraid that zoom steps will become a showstopper. I am going to increase the priority of this issue (we already know about it) and let you know when we have a bit more clarity about it.
I hope it is going to be resolve in our 2013 Q2 official release in June. However, let us know if you need it sooner.

Regards,
Hristo
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Dinesh
Top achievements
Rank 1
answered on 08 Feb 2019, 09:47 AM
I just need some help on how to scroll HORIZONTALLY by using (SHIFT + MOUSE SCROLL) IN WPF application. Give some idea or Code & Project Solution...
0
Vladimir Stoyanov
Telerik team
answered on 11 Feb 2019, 11:22 AM
Hello Dinesh,

I replied to your question in the other forum thread: https://www.telerik.com/forums/ctrl-mousescroll-for-zoom-mousescroll-for-scrolling#_sxWZEbW80ySdQ1Swtiruw.

Regards,
Vladimir Stoyanov
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
Diagram
Asked by
Kristoffer
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Kristoffer
Top achievements
Rank 1
Dinesh
Top achievements
Rank 1
Vladimir Stoyanov
Telerik team
Share this question
or