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

taskIdMapping property read only

Thread ID:





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


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 09:56 AM

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 04:16 AM


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 01:26 PM

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.

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.