How to open custom popup on assinged resources click?

2 posts, 0 answers
  1. Ram
    Ram avatar
    4 posts
    Member since:
    Feb 2018

    Posted 09 May 2018 Link to this post

    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??
  2. Neli
    Admin
    Neli avatar
    221 posts

    Posted 11 May 2018 Link to this post

    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.
Back to Top