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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to disable change taskbar duration by dragging

Thread ID:





148407 Oct 18,2019 01:47 AM UTC Oct 29,2019 04:21 PM UTC React - EJ 2 5
Tags: Gantt Chart
Ryosei Yawata
Asked On October 18, 2019 01:47 AM UTC


I want to disable change taskbar duration by dragging but keep enabling change date by dragging.
Please let me know if it is possible.

Just for reference:
Taskbar Editing

Thanks in advance,


Saranya Dhayalan [Syncfusion]
Replied On October 18, 2019 11:33 AM UTC

Hi Ryosei, 
Thank you for contacting Syncfusion support 
By using taskbarediting event we can restrict the duration update on resizing. We can set args.cancel as true when taskbarEditAction is LeftResizing or RightResizing. 
We can also hide taskbar resizing element by over-riding the CSS. 
Please find the below code example. 
      .e-gantt-chart .e-taskbar-right-resizer.e-icon.e-right-resize-gripper, 
      .e-gantt-chart .e-taskbar-left-resizer.e-icon.e-left-resize-gripper 
        display: none; 
        export class Editing extends SampleBase { 
            taskbarEditing(args) { 
                if (args.taskBarEditAction == "LeftResizing" || args.taskBarEditAction == "RightResizing") { 
                    args.cancel = true 
            render() { 
                return (<div className='control-pane'> 
                 <GanttComponent id='Editing' dataSource={editingData} 
For your convenience we have prepared a sample. Please find the below sample link.  
Could you please check the above sample and get back to us if you need further assistance on this? 
Saranya D 

Ryosei Yawata
Replied On October 26, 2019 05:43 AM UTC

Hi Saranya,

Thank you for quick response and sample code in detail.

Could you tell me class name to hide Connector point as well?
It's also okay that just let me know the document URL getting the info.

Best Regards,


Jonesherine Stephen [Syncfusion]
Replied On October 28, 2019 07:41 PM UTC

Hi Ryosei, 
Using ‘e-left-connectorpoint-outer-div’ and ‘e-right-connectorpoint-outer-div’ we can hide the connector point in Gantt taskbar. 
Please find the code example below: 
      .e-gantt-chart .e-left-connectorpoint-outer-div, 
      .e-gantt-chart .e-right-connectorpoint-outer-div 
        display: none !important; 
We have also prepared the sample based on this. Please find the sample from below location 
Please let us know if you need further assistance on this. 
Jone sherine P S 

Ryosei Yawata
Replied On October 29, 2019 12:11 AM UTC

Hi Joensherine,

Thank you!It works.



Pooja Priya Krishna Moorthy [Syncfusion]
Replied On October 29, 2019 04:21 PM UTC

Hi Ryosei, 
Thanks for the update. Please get back to us if you require further assistance on this. 
Pooja Priya K. 


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