We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Disable dialog after double click

Thread ID:

Created:

Updated:

Platform:

Replies:

147334 Sep 6,2019 09:27 AM UTC Sep 9,2019 01:04 PM UTC Vue 1
loading
Tags: Gantt Chart
Tomasz Tomczykiewicz
Asked On September 6, 2019 09:27 AM UTC

Hi,

I want to disable showing of the dialog after double click on the taskbar. How can I do this?

Best regards,
Tomasz Tomczykiewicz

Gurunathan A [Syncfusion]
Replied On September 9, 2019 01:04 PM UTC

Hi Tomasz, 
 
Greeting from Syncfusion 
 
There is no direct method to disable the edit dialog only on taskbar double click action. We can achieve this by using some work around by manually binding the double click event to the taskbars using JavaScript addEventListener method, in this event handler we have stopped event bubbling for double click action, please find the below code example. 
 
 
<ejs-gantt ref="gantt" id="GanttContainer" 
      //... 
      : queryTaskbarInfo="queryTaskbarInfo"> 
  </ejs-gantt> 
 
export default { 
  //... 
  methods: { 
    queryTaskbarInfo: function(args) { 
      args.taskbarElement.addEventListener("dblclick", function(e) { 
        e.stopImmediatePropagation(); 
        e.stopPropagation(); 
      }); 
    } 
  }, 
}; 
 
We have prepared the sample with your requirement, please find the sample from below link. 
Note: Dialog will render while clicking edit toolbar item and in the row other than the taskbar element in chart side. 
 
Please get back to us if you require further assistance on this. 

Regards, 
Gurunathan 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon