Hi Yahya,
Greetings from Syncfusion
support.
We have checked your query and
we have prepared a work around sample to achieve your requirement. In this
sample, we have used autoFitColumns method in dataBound event to
auto Fit the column. We have attached a sample and code snippets for your
reference, please check the below sample and code snippets for more details.
Code snippets:
|
[index.js]
dataBound() {
this.ganttInstance.treeGrid.autoFitColumns();
}
//…
<GanttComponent
dataBound={this.dataBound.bind(this)}>
|
Sample: https://stackblitz.com/edit/react-vybonz?file=index.js
Regards,
Gopinath M