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. Image for the cookie policy date

How could l use property editor without object existance

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.


5 Replies

VK Vishnu Kumar Syncfusion Team February 15, 2008 10:13 AM UTC


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.



NK Nadya Kaplun February 21, 2008 05:47 AM UTC

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



AD Administrator Syncfusion Team February 21, 2008 10:31 AM UTC

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




PE pentest30 replied to Nadya Kaplun February 23, 2018 02:36 PM UTC

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.


NG Naganathan Ganesh Babu Syncfusion Team February 26, 2018 07:08 AM UTC

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


Loader.
Live Chat Icon For mobile
Up arrow icon