Skip to content

Commit 4322c83

Browse files
Integrated latest changes at 08-15-2024 10:30:10 AM
1 parent a84b8ac commit 4322c83

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

ej2-javascript/code-snippet/gantt/rows-cs15/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var ganttChart = new ej.gantt.Gantt({
1212
editDialogFields: [
1313
{ type: 'General', headerText: 'General edit', fields: ["TaskID", "TaskName", "newinput"] },
1414
{type: 'Dependency', additionalParams: {allowPaging: true, allowSorting: true, toolbar: ["Search", "Print",]}},
15-
{ type: 'Resources', additionalParams: { allowSorting: true, allowPaging: true, toolbar: ["Search", "Print"], columns: [{ field: "newdata" }]}},
15+
{ type: 'Resources', additionalParams: { allowSorting: true, allowPaging: true, toolbar: ["Search", "Print"], columns: [{ field: "newData" }]}},
1616
{type: "Segments", additionalParams: {columns: [{ field: "segmenttask", width: "170px", headerText: "Segment Task" }],}}
1717
],
1818
height: '450px',
@@ -30,6 +30,11 @@ var ganttChart = new ej.gantt.Gantt({
3030
segments: 'Segments',
3131
notes:"note",
3232
},
33+
resourceFields: {
34+
id: 'resourceId',
35+
name: 'resourceName',
36+
unit: 'resourceUnit'
37+
},
3338
editSettings: {
3439
allowAdding: true,
3540
allowEditing: true,

ej2-javascript/code-snippet/gantt/rows-cs15/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let gantt: Gantt = new Gantt({
1515
editDialogFields: [
1616
{ type: 'General', headerText: 'General edit', fields: ["TaskID", "TaskName", "newinput"] },
1717
{type: 'Dependency', additionalParams: {allowPaging: true, allowSorting: true, toolbar: ["Search", "Print",]}},
18-
{ type: 'Resources', additionalParams: { allowSorting: true, allowPaging: true, toolbar: ["Search", "Print"], columns: [{ field: "newdata" }]}},
18+
{ type: 'Resources', additionalParams: { allowSorting: true, allowPaging: true, toolbar: ["Search", "Print"], columns: [{ field: "newData" }]}},
1919
{type: "Segments", additionalParams: {columns: [{ field: "segmenttask", width: "170px", headerText: "Segment Task" }],}}
2020
],
2121
height: '450px',
@@ -33,6 +33,11 @@ let gantt: Gantt = new Gantt({
3333
segments: 'Segments',
3434
notes:"note",
3535
},
36+
resourceFields: {
37+
id: 'resourceId',
38+
name: 'resourceName',
39+
unit: 'resourceUnit'
40+
},
3641
editSettings: {
3742
allowAdding: true,
3843
allowEditing: true,

0 commit comments

Comments
 (0)