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. Image for the cookie policy date

Not hiding context menu when scrolling

Hi,

When I have opened the context menu and I scroll, the context menu doesn't disappear. I want to hide the context menu, how to achieve this?

Best regards,
Tomasz Tomczykiewicz

6 Replies

PP Pooja Priya Krishna Moorthy Syncfusion Team September 25, 2019 01:59 PM UTC

Hi Tomasz, 
 
We are able to reproduce the reported issue. We will update further details about this issue by September 26, 2019. Now we have resolved this by work-around. We can bind scroll event to the element using JavaScript addEventListener method in the created event of Gantt control. In this event handler, by using close method of Context Menu, we can hide it during scroll action. Please find the below code example. 
 
 
<template> 
   <div> 
      <ejs-gantt ref="gantt" 
        //... 
         :created="created"> 
      </ejs-gantt> 
   </div> 
</template> 
<script> 
export default { 
  //... 
  methods: { 
    created: function(args) { 
      this.$refs.gantt.ej2Instances.ganttChartModule.scrollElement.addEventListener("scroll", function(e) { 
          if(document.getElementById("GanttContainer_contextmenu")) { 
            var contextMenu = document.getElementById("GanttContainer_contextmenu").ej2_instances[0]; 
            contextMenu.close(); 
          } 
        } 
      ); 
    } 
  } 
}; 
</script> 
 
Please find the below sample link. 
 
Regards, 
Pooja Priya K. 
 




GA Gurunathan A Syncfusion Team September 26, 2019 01:02 PM UTC

Hi Tomasz, 
 
We have checked your reported issue and we confirmed this as a defect and planned to include the fix for this issue in our Essential studio Volume 3 SP1 release. Please find the feedback portal link below. 
Until then we appreciate your patience. 
  
Regards, 
Gurunathan 


 



TT Tomasz Tomczykiewicz September 27, 2019 06:29 AM UTC

Hi,

Thanks for response.
When this release will be published?

Best regards,
Tomasz Tomczykiewicz


GA Gurunathan A Syncfusion Team September 27, 2019 09:22 AM UTC

Hi Tomasz,  
  
We are expecting the volume 3, SP1 2019 will be roll out in the mid of November, 2019.  
  
Please let us know if any concerns.  
  
Regards, 
Gurunathan  



TT Tomasz Tomczykiewicz November 22, 2019 09:05 AM UTC

Hi,

Has the issue been fixed?

Best regards,
Tomasz Tomczykiewicz


PP Pooja Priya Krishna Moorthy Syncfusion Team November 25, 2019 01:03 PM UTC

Hi Tomasz, 
Sorry for the inconveniences. 
We have reported the context menu team regarding this. They have fixed this issue. We checked this in Gantt with updated source. The issue arises as we set the target element as Gantt container. We logged a bug for this. We will fix this issue and  the fix will be included in our upcoming weekly patch release which is expected to be rolled out on December 4, 2019. You can track the status from below feedback link. 

Until then you can use the work-around solution which was provided in the previous update. 

Regards, 
Pooja Priya K. 


Loader.
Live Chat Icon For mobile
Up arrow icon