Get column collection in resource view

In Gantt resource view it is possible to get all the columns in a variable by using getResourceViewEditColumns public method. By using this we can add custom columns to gantt which can be editable in add/edit dialog.
The following code example shows this.

  • javascript
  • $("#resourceGantt").ejGantt({
            load: function () {
    
                var columns = this.getResourceViewEditColumns();
                var editColumn = {
                    field: "customColumn",
                    mappingName: "CustomColumn",
                    headerText: "Custom Column",
                }
                columns.push(editColumn);
            }
        });

    The following screen shot shows the custom column in add dialog.