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
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Disable row editing

Thread ID:

Created:

Updated:

Platform:

Replies:

148793 Nov 4,2019 08:36 PM UTC Nov 5,2019 09:47 AM UTC jQuery 1
loading
Tags: ejGantt
Razvan Nicolae
Asked On November 4, 2019 08:36 PM UTC

Hello,
Is there any method on disabling editing on a specific row?
I've tryed, but this also disabled the click for expanding it's subtasks
rowDataBound: function (args) {
         if(args.data.taskID ===100)
               args.row.style['pointer-events']='none';

Saranya Dhayalan [Syncfusion]
Replied On November 5, 2019 09:47 AM UTC

Hi Razvan, 
 
Thank you for contacting Syncfusion support 
 
We have checked your requirement, In Gantt, we can disable the specific row editing by using actionBegin, beginEdit, taskbarEditing events. By setting args.cancel  as true in event argument, we can disable the particular event’s action. 
 
Please find the code snippet below, 
 
  $("#GanttContainer").ejGantt({ 
           //..... 
                actionBegin: function(args) { 
                  if(args.requestType == "beforeOpenEditDialog") 
                  { 
                        if(args.data.taskId == 4) { 
                            args.cancel = true; 
                        } 
                  } 
                }, 
                beginEdit: function(args) { 
                    if(args.data.taskId == 4) { 
                        args.cancel = true; 
                    } 
                }, 
                taskbarEditing: function (args) { 
                    if(args.rowData.taskId == 4) { 
                        args.cancel = true; 
                    } 
                }, 
      
 
We can’t find whether you are using EJ1 version of or EJ2 version of Gantt, we have prepared sample for both versions. Please find the samples links below. 
 
 
 
Please share us information about whether you are using EJ1 Gantt or EJ2 Gantt, it will helpful to provide solution based on this. 
 
Could you please check the above sample and get back to us if you need any further assistance on this? 
 
Regards, 
Saranya D 


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