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.
Unfortunately, activation email could not send to your email. Please try again.

How could l use property editor without object existance

Thread ID:

Created:

Updated:

Platform:

Replies:

71807 Feb 14,2008 12:27 AM Feb 26,2018 02:08 AM Windows Forms 5
loading
Tags: Diagram
Nadya Kaplun
Asked On February 14, 2008 12:27 AM

Hi all!
Please, help. I need to see property editor before the object creation. For example, before creation (thus, before selection) of object, I need to get/set initial properties of the object (diameter, length etc.) to create it. How could I do it?

Thanks,
Nadya.


Vishnu Kumar [Syncfusion]
Replied On February 15, 2008 05:13 AM


Hi Nadya,

Thank you for posting your query to us.

Issue: I need to see property editor before the object creation

You can see the property editor before object creation by setting the propertyEditor1.Visible=true in form load. But it is not possible to set the properties(diameter, length etc) to the diagram object before creation.

Please let me know if you have any other concerns.

Regards,
Vishnu.


Nadya Kaplun
Replied On February 21, 2008 12:47 AM

Thank you for your answer!

I have solve below problem by adding request form with initial properties of the object.

But I still have problems with properties editor without object existance.

I do not need to show properties of the diagram without object existace. I need to show clear properties editor (without properties), when l have no objects in diagram.
How can I do it?

Thank you,
Nadya Kaplun


Administrator [Syncfusion]
Replied On February 21, 2008 05:31 AM

Hi Nadya,

If you dont want to display the properties for the null objects in the diagram, then you can display the PropertyEditor with clear properties.

You can display the properties only when the DiagramControl contains any objects in it.

I have used the following code snippet to initially make the PropertyEditor to display the clear properties when the Diagram contains null objects.

[C#]

private void diagram1_DragDrop(object sender, DragEventArgs e)
{
if (this.diagram1.View.SelectionList.Count > 0)
{
this.PropertyEditor1.Diagram = this.diagram1;
this.PropertyEditor1.SetSelectedObjects(this.diagram1.View.SelectionList);
}
}

Sample reference

Please refer the sample and let me know if this helps.

http://websamples.syncfusion.com/samples/Diagram.Windows/F71807/main.htm

Regards,
Jaya



pentest30
Replied On February 23, 2018 09:36 AM

Thank you for your answer!

I have solve below problem by adding request form with initial properties of the object.

But I still have problems with properties editor without object existance.

I do not need to show properties of the diagram without object existace. I need to show clear properties editor (without properties), when l have no objects in diagram.
How can I do it?

Thank you,
Nadya Kaplun


yes i do agree with your terms.

Naganathan Ganesh Babu [Syncfusion]
Replied On February 26, 2018 02:08 AM

Hi Nadya, 
 
Thanks for your update. 
 
Please let us know if you need any further assistance. 
 
Regards, 
 
Naganathan K G 


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.

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.

;