S. No |
Query |
Syncfusion Comments | |
|
Expand/Collapse icon not visible |
Please ensure that you are mapping the correct column index in the treeColumnIndex property i.e., the TaskName column has the columnIndex 1. We suspect that, you are wrongly mapping that treeColumn index.
For example, in the below code snippet TaskName column is in the columnIndex 1, so that the expand or collapse icon is showing in correct position. Please refer the code snippet
[app.component.ts]
We have prepared a sample for you reference. Please refer the sample link below.
| |
|
Non-editable/read-only Gantt |
Yes. We can make the Gantt as readOnly or non-editable using the readOnly. If the property readOnly set as true, the Gantt can’t be editable. For better understanding, please refer this documentation link below.
Documentation: https://ej2.syncfusion.com/angular/documentation/gantt/managing-tasks/#read-only-gantt
|
Styles.css
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
@import '../node_modules/@syncfusion/ej2-calendars/styles/material.css';
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css';
@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css';
@import '../node_modules/@syncfusion/ej2-lists/styles/material.css';
@import '../node_modules/@syncfusion/ej2-layouts/styles/material.css';
@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css';
@import '../node_modules/@syncfusion/ej2-popups/styles/material.css';
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
@import '../node_modules/@syncfusion/ej2-richtexteditor/styles/material.css';
@import '../node_modules/@syncfusion/ej2-grids/styles/material.css';
@import '../node_modules/@syncfusion/ej2-treegrid/styles/material.css';
@import '../node_modules/@syncfusion/ej2-gantt/styles/material.css';
|
S. No |
Query |
Syncfusion Comments | |
|
Why is my chart showing dates from Jan? |
This is because you are mapped as start date for first task as ["startDate":"2020-01-01T06:00:00+00:00"].
If the project start date and project end date are not mapped in the Gantt, the project start date and end date will automatically calculate as minimum start date of task and maximum end date of the tasks respectively.
We suspect that you are not mapped the Project start date. So that the project start date is calculated from JAN 1, because this is the minimum start date mapped.
If you need to render the project from 10/12/2020 to 11/13/2020, Please set the project these dates as project start date and end date. Please find the code snippet below,
[app.component.ts]
| |
|
And also, dates are showing wrong!! |
Did you mean the, parent task dates are not rendered as mapped in datasource? If yes, we would like to inform that, the start date and date of the parent tasks will be rendered based on its child tasks. For better understanding, start date of a parent task will be minimum start date of its child task and end date of the parent task will be maximum end date of the child task. | |
|
Can we add colors for different lines in graph? |
Please let us know did you mean to change the color of gridLines or changing the color of the taskbar. If you need to change the gridline color means we can change all gridlines as common color by overriding the existing class, else you mean the taskbar color change, we can change that based on our conditions. Please let us know your detail requirement on this. This information will be helpful for us to provide you the better solution as soon as possible. |
dayWorkingTime
property. Based on the working hours, automatic date scheduling and duration validations for a task are performed. Please refer the below code snippet
[HTML]
<ejs-gantt [taskFields]="taskSettings [includeWeekend]="true"
[dayWorkingTime]="dayWorkingTime" >
</ejs-gantt>
[TS]
export class AppComponent {
public ngOnInit(): void {
//..
this.dayWorkingTime = [
{from: 0,
to: 23 }
];
}
} |