Hi, I'm angular version 10 and angular gantt version 19.
while creating gantt columns.
I'm setting visible false for some columns but this property is not working do not why,
Regards,
Naresh Singh
Thanks for your response.
Yes, For the first time when the component is loaded then the column visible property works. but on click event. when i try to set visible property true to false or vice versa of any specific column it doesn't work.
Here is a stackblitz example: dummy-project
Does the visible property of the column work only when the component loaded first time?
Reegards,
Naresh Singh
|
onClick() {
this.ganttObj.columns.forEach(c => {
if (c['field'] === 'TaskID') {
c['visible'] = false;
}
if (c['field'] === 'StartDate') {
c['visible'] = true;
}
});
this.ganttObj.refresh();
}
|