Loose custom javascript after expand/collapse

5 posts, 0 answers
  1. Druoton
    Druoton avatar
    4 posts
    Member since:
    Jul 2014

    Posted 27 Jul 2016 Link to this post

    Hello Telerik team,

     

    I bound dblclick events on each tasks of my radgantt. This binding is made in the PageLoad function of the .aspx page which contains the radgantt.

    This event allow the user to display a custom popup rather than the default one.

     

    But I noticed that the execution don't go in my custom JavaScript code (and don't throw the dblclick event or anything else) as soon as I click on the expand/collapse button on a task.

     

    I need that the execution go in my custom JavaScript code even if I click on the expand/collapse buttons.

    Is it possible ?

     

    Thanks in advance,

    Best reagrds

  2. Peter Milchev
    Admin
    Peter Milchev avatar
    195 posts

    Posted 01 Aug 2016 Link to this post

    Hello Druoton,

    I am afraid that this is a custom and not supported scenario. Nevertheless, I would suggest you try subscribing to the click event of the expand/collapse button and manually fire the double click event.

    Regards,
    Peter Milchev
    Telerik by Progress
  3. Barış
    Barış avatar
    3 posts
    Member since:
    Nov 2013

    Posted 03 Feb Link to this post

    hi,

    We are stuck on the same scenario,  after expand/collapse a parent task, below tasks dblclick opens default edit popup.

    Are there any improvements on that matter?

    if not, will you please provide us a sample for subscribing to the click event of the expand/collapse button?

     

    Thanks in advance

  4. Peter Milchev
    Admin
    Peter Milchev avatar
    195 posts

    Posted 03 Feb Link to this post

    Hello,

    Here is a sample implementation that logs in the console every time a collapse/expand handle is clicked: 

    $telerik.$('.RadGantt .rgtTreelistContent.radGridContent')
        .on('click',
        '.radIcon.radIconExpand, .radIcon.radIconCollapse',
        function () {
            console.log('handle clicked')
        });

    More information on the event subscription could be found here: jQuery .on( events [, selector ] [, data ], handler).

    Regards,
    Peter Milchev
    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.
  5. Barış
    Barış avatar
    3 posts
    Member since:
    Nov 2013

    Posted 05 Feb in reply to Peter Milchev Link to this post

    Thank you for your help
Back to Top