Tableshape diagram

2 posts, 0 answers
  1. Sunny
    Sunny avatar
    3 posts
    Member since:
    Nov 2016

    Posted 10 Nov 2016 Link to this post


    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.



  2. Dinko
    Dinko avatar
    442 posts

    Posted 14 Nov 2016 Link to this post

    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.

    Telerik by Progress
    Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
Back to Top