Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion ej2-javascript/code-snippet/gantt/rows-cs15/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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,
Expand Down
7 changes: 6 additions & 1 deletion ej2-javascript/code-snippet/gantt/rows-cs15/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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,
Expand Down