This is a migrated thread and some comments may be shown as answers.

Tableshape diagram

1 Answer 120 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Sunny
Top achievements
Rank 1
Sunny asked on 10 Nov 2016, 09:20 AM

Hi

Can you give a code sample to add a new table from which is dragged from treeview to sqldiagram & also add table & columns from code behind not from xml.

 

 

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 14 Nov 2016, 03:11 PM
Hi Sunny,

Let us first start with that we don't provide an example which demonstrates the mentioned approach in your post but you can achieve it by creating a custom implementation. You can take a look at the TableShape online example which demonstrates how you can customize the diagram to look like a SQL diagram. Keep in mind that this example is MVVM based and we have created a custom class for the shape, container shape and the diagram itself. As for drag and drop an item from the ItemsControl you can take a look at the Drag and Drop Support help article in our documentation which demonstrates how you can customize the drag/drop operations. Basically, when you drop an item you can create a model and added it in the graph source of the diagram.

Hope this information is helpful.

Regards,
Dinko
Telerik by Progress
Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
Tags
Diagram
Asked by
Sunny
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or