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

Display toolbar when hovering over shape

1 Answer 146 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 22 Feb 2017, 08:26 PM
Looking to have a toolbar appear when the mouse pointer hovers over a shape and disappear when it hovers off the shape.  Right now the toolbar appears when i left click on the shape.  I've tried emulating a "click" event on the mouse entering event, but it looks like that is too late in the event cycle and the toolbar does not appear.  I'm trying to emulate a "tap" event, but having trouble with the data needed to simulate the event through the trigger function.  Is this the correct way to accomplish showing the toolbar for a shape?   Thanks

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 24 Feb 2017, 11:55 AM
Hello David,

This is currently not supported out of the box from the Diagram, the shape can be only selected programmatically, but this will not show the toolBar.

I can suggest submitting a feature request for a method to programmatically open the toolbar for a specific shape:

http://kendoui-feedback.telerik.com/forums/127393-kendo-ui-feedback/category/170307-diagram

Then the mouseEnter event can be used to open it:

http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/diagram#events-mouseEnter

Regards,
Stefan
Telerik by Progress
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
David
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or