We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Read only mode/view only diagram

Thread ID:

Created:

Updated:

Platform:

Replies:

114197 Nov 5,2013 09:17 AM UTC Nov 11,2013 12:08 PM UTC WinForms 3
loading
Tags: Diagram
Klaudiusz Bryja
Asked On November 5, 2013 09:17 AM UTC

Hi,

How to create readonly diagram control (WinForms)? I read some post where you suggest to deactivate all tools except zoom and pan but meybe you have new solution for this?

Now I set Enable property to false but scrolls and some tools not working (it wasn't problem for us till now so I have to create readonly diagram)

How to achieve my needs?

Best regards,
Klaudiusz

Ashok Kumar V [Syncfusion]
Replied On November 6, 2013 12:18 PM UTC

Hi Klaudiusz,

Thanks for your Interest in Syncfusion product,

We are glad to inform you that we have created a simple sample to achieve your requirement and same can be downloaded from the below link.

Please try the sample and let us know if you have any queries.

Regards,

Ashok Kumar



Forum_114197_98cbc88e.zip

Klaudiusz Bryja
Replied On November 7, 2013 09:23 AM UTC

Hi,

This is not what I need. If you set diagram.Enable on false scrolls doesn't work but I want them to work. Look on your sample - you can't move scroll.
I need solution where all operations are blocked except zoom, pan and scrolls. Do you have any solution (e.g. diagram.ReadOnly)?

Best regards,
Klaudiusz

Ashok Kumar V [Syncfusion]
Replied On November 11, 2013 12:08 PM UTC

Hi Klaudiusz,

Thanks for your update,

We suggest you to set node’s “Editstyle” property “AllowSelect” to false to achieve your requirement. Please refer the below code snippet for your reference.

[C#]

 

    Syncfusion.Windows.Forms.Diagram.Ellipse ellip = new Syncfusion.Windows.Forms.Diagram.Ellipse(300, 200, 100, 70);

            AddLabel(ellip, "Ellipse", Position.Center);

ellip.EditStyle.AllowMoveX = false;

            ellip.EditStyle.AllowMoveY = false;

//AllowSelect indicating whether node can be Selected or not

            ellip.EditStyle.AllowSelect = false;

            diagram1.Model.AppendChild(ellip);

 

 

Please try the sample and let us know if you have any queries.

Regards,

Ashok Kumar

 



114197_8795c77.zip

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;