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

taskIdMapping property read only

Thread ID:





116563 Jun 10,2014 08:34 AM UTC Jun 23,2014 05:26 PM UTC JavaScript 3
Tags: ejGantt
Otomar Naprstek
Asked On June 10, 2014 08:34 AM UTC


how can i do the property taskIdMapping in ejGantt read only?
I do not want the user to edit this property.

Thanks and BR

Bharath Marimuthu [Syncfusion]
Replied On June 11, 2014 01:56 PM UTC

Hi Otomar,


Thanks for your update.


You can able to cancel the editing for particular column by handling the beginEdit event like below code snippet , thus making it as a read only column.


Code snippet





taskIdMapping: "taskID",

beginEdit: "beginEdit",




function beginEdit(args) {

var editedData = args.data;

var column = this.getColumns();


if (column[args.columnIndex].mappingName == " taskID ")


   args.cancel = true;




For your reference here with we have attached the sample for cancel the editing in TaskId column with updated source and it can be downloaded from the following location.


Sample location: http://www.syncfusion.com/downloads/support/directtrac/general/GanttControlSample304747002.zip


Please let us know if need more information on this.




Otomar Naprstek
Replied On June 20, 2014 08:16 AM UTC


I tested the provided code an I found it not working. The code threw a java script error, because the args parameter object does not have the 'columnIndex' attribute.

Thanks and BR

Bharath Marimuthu [Syncfusion]
Replied On June 23, 2014 05:26 PM UTC

Hi Otomar ,


Sorry about the inconvenience caused.

We have analyzed the reported issue with our sample; we are not able to reproduce the issue. Can you please check with the sample in the following location? If still you face the problem, please revert us by modifying the sample based on your application along with replication procedure. This would be helpful for us to serve you.

Sample Location: http://www.syncfusion.com/downloads/support/directtrac/general/116563429150652.zip


Please let us know if you need further assistance on this.





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