simple hierarchy - edit menu

2 posts, 0 answers
  1. Justin Lee
    Justin Lee avatar
    164 posts
    Member since:
    Dec 2009

    Posted 06 Jul Link to this post

    Hello,

    I want to use a diagram to display a simple hierarchy, exactly like the "basic usage" demo:  http://demos.telerik.com/aspnet-mvc/diagram

    Users should NOT be able to move, resize, drag, connect, etc.

    However, when an item is selected, I would like to show the menu like in the "Editing" example - with buttons to edit the properties of the item, as well as delete the item.

    1. Is it possible to have the menu without setting up datasource configuration for connections?  (i.e. just specifying .Children("..."))

    2. Can you add custom actions (buttons) to that menu?  

    Thanks

  2. Stefan
    Admin
    Stefan avatar
    1145 posts

    Posted 10 Jul Link to this post

    Hello Justin,

    Currently, the Diagram will not allow the user to move, resize etc only when the editable property is set to false.

    Regarding the questions:

    1) If there is not dataSource set for the connection all changes will not be reflected on the server.

    2) Custom buttons can be added to the editable menu:

    http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/diagram#configuration-editable.tools

    http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/diagram#configuration-connectionDefaults.editable.tools

    http://docs.telerik.com/aspnet-mvc/api/Kendo.Mvc.UI.Fluent/DiagramConnectionDefaultsEditableSettingsToolButtonBuilder#kendomvcuifluentdiagramconnectiondefaultseditablesettingstoolbuttonbuilder


    Regards,
    Stefan
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top