how to enable Zooming without Editing
Hi,
After upgrade my project to 15.3.0.33 version, zooming of SfDiagram stoped working.
In my code I haved following diagram's constraints:
sfdiagram.Constraints = GraphConstraints.Default ;
sfdiagram.Constraints &= ~(GraphConstraints.PageEditing | GraphConstraints.PanRails);
sfdiagram.Constraints = GraphConstraints.Zoomable;
When I comment second code line, zooming is fine, but I'd like to have zoomable without editing. I attached example Organization Chart with adding zoom slider on MainWindow.
Please let me know how to enable zooming with disable editing,
Best Regards, Jacek.
Attachment: Organization_Chart_with_zooming_23aea454.zip
SIGN IN To post a reply.
3 Replies
RA
Ranjitha Amirthalingam
Syncfusion Team
November 13, 2017 09:44 AM UTC
Hi Jacek,
Thanks for contacting Syncfusion Support.
By default, we have added Zoomable constraints to Diagram. We have restricted Zooming once PageEditing is disabled. This is the behavior. We have understood that your requirement is “to disable Page Editing and enable Zooming” for Diagram. This requirement can be achieved by using the Tool property of SfDiagram. We have provided code example and modified sample to represent this. Please refer to the sample from the below link.
Code example:
|
//This Tool helps to Zoom and Pan the Diagram, will disable Page editing
sfdiagram.Tool = Tool.ZoomPan; |
Sample Link: http://www.syncfusion.com/downloads/support/forum/133683/ze/Modofied_Sample_OrganizationChart-1383137796
For more details, please visit our online help documentation.
Regards,
Ranjitha A.
JG
Jacek Garczyk
November 13, 2017 07:09 PM UTC
Hi Ranjitha
Thank You for your answer. It seems working only for first mouseover event. After moving mouse over diagram control the solution stop working.
Please see my video (attachment). In tenth second I did mouseover.
Regards, Jacek
Attachment: 20171113_19h59_14_f03d489d.zip
RA
Ranjitha Amirthalingam
Syncfusion Team
November 14, 2017 12:40 PM UTC
Hi Jacek,
We have confirmed that the reported issue “Unable to Zoom while using ZoomCommand “as an issue and a support incident has been created under your account to track the status of this issue. Please log on to our support website to check for further updates.
Regards,
Ranjitha A.
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
JG Jacek Garczyk
- Nov 10, 2017 06:02 PM UTC
- Nov 14, 2017 12:40 PM UTC