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

Is it possible to implement 'On Click' Mouse events on Kendo Diagram Shape.

3 Answers 423 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Jayasimha
Top achievements
Rank 1
Jayasimha asked on 31 Jan 2017, 10:24 AM
Please suggest me that Is there any possibility of working Mouse 'On Click' events with the Kendo UI shapes.Please find the attachment of Kendo UI diagram having Shapes on it filled with color.

3 Answers, 1 is accepted

Sort by
0
Eduardo Serra
Telerik team
answered on 31 Jan 2017, 04:11 PM
Hello Javasimha,

In order to execute some code when the user clicks on a shape, we can take advantage of the click event of the Kendo UI Diagram; you can read more about it here. The Diagram Events sample shows an example of this functionality in use; take a look at it here.

I hope this helps.

Regards,
Eduardo Serra
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.
0
Jayasimha
Top achievements
Rank 1
answered on 01 Feb 2017, 06:51 AM
Thanks Eduardo.Already I tried this but that example or code is not giving any output if we Open in the Dojo. Please suggest me if any examples or references if you have.
0
Eduardo Serra
Telerik team
answered on 02 Feb 2017, 10:02 PM
Hello Jayasimha,

In the sample that I shared with you, there's a section below the Diagram area that logs every event triggered by the widget; when you click on a shape, do you get the text informing you that a shape was clicked?

The previous behavior is expected on both the sample page and the Kendo UI Dojo when opened in a separate tab/window.

Regards,
Eduardo Serra
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
Jayasimha
Top achievements
Rank 1
Answers by
Eduardo Serra
Telerik team
Jayasimha
Top achievements
Rank 1
Share this question
or