diff --git a/ej2-javascript/code-snippet/gantt/rows-cs15/index.js b/ej2-javascript/code-snippet/gantt/rows-cs15/index.js index b005ebe1c..6775f0e91 100644 --- a/ej2-javascript/code-snippet/gantt/rows-cs15/index.js +++ b/ej2-javascript/code-snippet/gantt/rows-cs15/index.js @@ -12,7 +12,7 @@ var ganttChart = new ej.gantt.Gantt({ editDialogFields: [ { type: 'General', headerText: 'General edit', fields: ["TaskID", "TaskName", "newinput"] }, {type: 'Dependency', additionalParams: {allowPaging: true, allowSorting: true, toolbar: ["Search", "Print",]}}, - { type: 'Resources', additionalParams: { allowSorting: true, allowPaging: true, toolbar: ["Search", "Print"], columns: [{ field: "newdata" }]}}, + { type: 'Resources', additionalParams: { allowSorting: true, allowPaging: true, toolbar: ["Search", "Print"], columns: [{ field: "newData" }]}}, {type: "Segments", additionalParams: {columns: [{ field: "segmenttask", width: "170px", headerText: "Segment Task" }],}} ], height: '450px', @@ -30,6 +30,11 @@ var ganttChart = new ej.gantt.Gantt({ segments: 'Segments', notes:"note", }, + resourceFields: { + id: 'resourceId', + name: 'resourceName', + unit: 'resourceUnit' + }, editSettings: { allowAdding: true, allowEditing: true, diff --git a/ej2-javascript/code-snippet/gantt/rows-cs15/index.ts b/ej2-javascript/code-snippet/gantt/rows-cs15/index.ts index 614a86096..266840973 100644 --- a/ej2-javascript/code-snippet/gantt/rows-cs15/index.ts +++ b/ej2-javascript/code-snippet/gantt/rows-cs15/index.ts @@ -15,7 +15,7 @@ let gantt: Gantt = new Gantt({ editDialogFields: [ { type: 'General', headerText: 'General edit', fields: ["TaskID", "TaskName", "newinput"] }, {type: 'Dependency', additionalParams: {allowPaging: true, allowSorting: true, toolbar: ["Search", "Print",]}}, - { type: 'Resources', additionalParams: { allowSorting: true, allowPaging: true, toolbar: ["Search", "Print"], columns: [{ field: "newdata" }]}}, + { type: 'Resources', additionalParams: { allowSorting: true, allowPaging: true, toolbar: ["Search", "Print"], columns: [{ field: "newData" }]}}, {type: "Segments", additionalParams: {columns: [{ field: "segmenttask", width: "170px", headerText: "Segment Task" }],}} ], height: '450px', @@ -33,6 +33,11 @@ let gantt: Gantt = new Gantt({ segments: 'Segments', notes:"note", }, + resourceFields: { + id: 'resourceId', + name: 'resourceName', + unit: 'resourceUnit' + }, editSettings: { allowAdding: true, allowEditing: true,