From 4322c83b305c5881dbaa2656adbe6258982fe096 Mon Sep 17 00:00:00 2001 From: Build Automaion Date: Thu, 15 Aug 2024 10:57:02 +0530 Subject: [PATCH] Integrated latest changes at 08-15-2024 10:30:10 AM --- ej2-javascript/code-snippet/gantt/rows-cs15/index.js | 7 ++++++- ej2-javascript/code-snippet/gantt/rows-cs15/index.ts | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) 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,