Gantt AutoFit Column Default

Hi

I wanna see gant column autofit, as default. 

How can i do that


3 Replies

GM Gopinath Munusamy Syncfusion Team September 23, 2022 12:47 PM UTC

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



YA Yahya Alatas September 23, 2022 02:58 PM UTC

Thank you so much



GM Gopinath Munusamy Syncfusion Team September 26, 2022 05:30 AM UTC

Hi Yahya,


You’re most welcome. Please get back to us if you require any further assistance.


Regards,

Gopinath M


Loader.
Up arrow icon