I have attached the picture you can see the start data is in it is 29 for all the tasks. I can change the end date as well as the percentage Complete but when I change the start date It goes back to the 29th data always can you please let me know what is this issue.
const gantt = new Gantt({
appendTo : 'gantt_chart',
// resourceImageFolderPath : "/common/images/bryntumGantt/resourceAvatar",
// startDate : new Date(),
// endDate : new Date(),
project : {
taskModelClass : Task,
dependencyModelClass : MyDependencyModel,
taskStore : {
listeners : {
change : (data) => {
console.log('data1234 tast data changes', data, data.changes);
console.log('data1234 Task data records', data, data.records);
if (data.action === 'add') {
taskStoreDataAdd(data.records);
}
if (data.action === 'update') {
taskStoreDataUpdate(data.records);
}
}
}
},
dependencyStore : {
listeners : {
change : (data) => {
if (data.action === 'add') {
dependencyStoreDataAdd(data.records);
}
if (data.action === 'remove') {
console.log('Dependency records', data.records);
dependencyStoreDataRemove(data.records);
}
}
}
}
},
features: {
percentBar: true,
pdfExport : {
exportServer: 'https://dev.bryntum.com:8082',
headerTpl,
footerTpl
},
taskTooltip : {
template(data) {
const me = this,
{ taskRecord } = data;
return TaskTooltip.defaultConfig.template.call(me, data) +
`<table border="0" cellspacing="0" cellpadding="0">
<tr><td>${me.L('Status')}:</td><td>${taskRecord.status_name}</td></tr>
<tr><td>${me.L('Assignee')}:</td><td>${taskRecord.assignee_name}</td></tr>
</table>`;
}
},
},
tbar : [
{
type : 'button',
ref : 'exportButton',
icon : 'b-fa-file-export',
text : 'Export to PDF',
onClick() {
gantt.features.pdfExport.showExportDialog();
}
}
],
columns : [
{ type : 'name', width : 130 },
{ type : 'startdate' },
{ type : 'enddate' },
],
taskRenderer({ taskRecord }) {
if (taskRecord.isLeaf && !taskRecord.isMilestone) {
return StringHelper.encodeHtml(taskRecord.name);
}
}
});
gantt.project.inlineData = {
tasksData : tasks.data,
dependenciesData : tasks.links,
resourcesData : [
{ id : 12, name : 'Arcady', company: 'jinTech' },
{ id : 14, name : 'Don' , company: 'ABC'}
],
assignmentsData : [
{ 'event' : 12, 'resource' : 12 },
{ 'event' : 24, 'resource' : 14 }
]
};