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.

orgChart sample problem

Thread ID:





38877 Dec 20,2005 11:38 AM Dec 21,2005 02:45 PM Windows Forms 1
Tags: Diagram
Asked On December 20, 2005 11:38 AM

Hi again i saw orgChart sample C# application, where we can create rectangle based on user input value. but same when i call the same functionality in Diagrams_ChilderenChangeComplete event its creating 2 symbols 1 with empty text and 1 with usergiven text how to overcome this problem since i want to use it in ChilderenChangeComplete event when we drag and drop a symbol it automatically opens a form and user gives his input when we click OK it should create the symbol. Thanks & Regards Rajkumar

Administrator [Syncfusion]
Replied On December 21, 2005 02:45 PM

Rajkumar, The Diagram.ChildrenChangeComplete event is fired whenever a new node is added to the diagram. In your case the ChildrenChangeComplete event is being generated because a new symbol has already been created in response to the drag-drop event, and was just added to the diagram. So instead of creating a new symbol inside your ChildrenChangeComplete event, you should simply use the event argument to get hold of the recently created symbol instance, and assign the data that you obtained from the user to this symbol. You could use a uniquely identifiable Name property that was assigned to the SymbolModel while designing it(or to the Symbol class definition) to determine if the recently added node is an instance of your symbol type. Prakash Surendra Syncfusion Inc.,


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.