Articles in this section
Category / Section

How to enable or disable editing columns in Gantt?

1 min read

In Gantt, specific columns can be made non-editable or read-only, by using the beginEdit client-side event, with column index from event argument values.

The following code example explains how you can make a column as non-editable or read-only.


<ej:Gantt ID="Gantt" runat="server” BeginEdit="beginEdit”>
<script type="text/javascript">
function beginEdit(args) {
         if (this.getColumns()[args.columnIndex].field === "taskName") {
          args.cancel = true;
protected void Page_Load(object sender, EventArgs e)
            var DataSource = this.GetDataSource();                     




Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment