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

Not showing options to edit

Thread ID:

Created:

Updated:

Platform:

Replies:

145698 Jul 4,2019 10:45 AM UTC Jul 5,2019 09:58 AM UTC Vue 3
loading
Tags: Gantt Chart
Tomasz Tomczykiewicz
Asked On July 4, 2019 10:45 AM UTC

Hi,

I want to disable editing for a specific task and I can achieve it by set cancel to true in taskbarEditing event. But when I hover the mouse over this task, it shows "editing tools". How can I not show it?



Best regards,
Tomasz Tomczykiewicz

Jesus Arockia Sankaran S [Syncfusion]
Replied On July 5, 2019 08:56 AM UTC

Hi Tomasz, 
 
We can prevent taskbar editing element when hover on it by following work-around. In Gantt, we have a client-side event called queryTaskbarInfo which will be triggered whenever the taskbar changes. By using this event, we can change the CSS styles to prevent the taskbar editing element. 

Please find the code example below. 
<template> 
    <div> 
        <ejs-gantt ref='gantt' :dataSource="data" id="GanttContainer" 
            :queryTaskbarInfo="queryTaskbarInfo"> 
        </ejs-gantt> 
    </div> 
</template> 
<script> 
  export default { 
     methods:{ 
      queryTaskbarInfo:function (args) { 
        if (args.data.TaskID == 3) { 
          args.taskbarElement.id = 'preventEdit' 
        } 
    } 
  } 
  }; 
</script> 
 
<style> 
    #preventEdit 
    { 
        cursor: auto !important 
    } 
 
    .e-gantt-chart #preventEdit .e-right-resize-gripper, 
    .e-gantt-chart #preventEdit .e-left-resize-gripper, 
    .e-gantt-chart #preventEdit .e-progress-resize-gripper, 
    .e-gantt-chart #preventEdit .e-left-connectorpoint-outer-div, 
    .e-gantt-chart #preventEdit .e-right-connectorpoint-outer-div 
      { 
        display: none; 
    } 
</style> 
 
Please find the below sample link. 
 
Please get back to us if you require further assistance on this. 
 
Regards, 
Jesus Arockia Sankaran S 


Tomasz Tomczykiewicz
Replied On July 5, 2019 09:35 AM UTC

Thank you, it solved my problem.

Best regards,
Tomasz Tomczykiewicz

Jesus Arockia Sankaran S [Syncfusion]
Replied On July 5, 2019 09:58 AM UTC

Hi Tomasz, 

Thanks for you update. 

Please get back to us if you need any further assistance. 

Regards, 
Jesus Arockia Sankaran S 


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