Get columns collection in resourceview Gantt in JQuery Gantt widget

20 Jul 20181 minute to read

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.

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

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