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
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.