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

How to open custom popup on assinged resources click?

1 Answer 114 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Ram
Top achievements
Rank 1
Ram asked on 09 May 2018, 02:24 PM
I want to enable my custom popup on assigned resource click in gantt tasks. When I click on assigned resources OnEdit event is not calling. Can any one help me??

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 11 May 2018, 10:39 AM
Hi Ram,

The edit event is triggered when the user double click on the task, not on the text that describes the resource. If you need to bind click event to the resources text, you could use the 'k-resource' class. In the click event handler you could open the needed Dialog.
$('.k-resource').dblclick(function(){
$('#dialog').data('kendoDialog').open();      
})
Here is a Dojo example where on double click on the resource a Dialog appear.
To ensure that all the elements are rendered by the time you are binding the click event I would suggest you to use the setTimeout function. 

Regards,
Neli
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Gantt
Asked by
Ram
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or