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

simple hierarchy - edit menu

1 Answer 82 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Justin Lee
Top achievements
Rank 1
Justin Lee asked on 06 Jul 2017, 03:48 PM

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

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 10 Jul 2017, 11:27 AM
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.
Tags
Diagram
Asked by
Justin Lee
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or