error when resizing a column on a spreadsheet

hello

I want to resize my spreadsheet because when i arrive on my spreadsheet, text is too long, i want my text to be wrapped in a smaller column :

for example here https://snipboard.io/ixh7nv.jpg

i want my column A to be smaller,

so here my code i use :

.../...
this.spreadsheet = new Spreadsheet({ ...options, showSheetTabs: this.showSheetTabs });
this.spreadsheet.setColWidth(3,0,0); /
.../...

this code call this one : 

https://snipboard.io/qS5uZb.jpg

and then a got an error one this call : 

https://snipboard.io/19FETp.jpg
https://snipboard.io/YdGTWp.jpg

i dont understand why sheetmodule is undefined here.. 



please can you help me ?Thanks a bunch

1 Reply 1 reply marked as answer

SP Sangeetha Priya Murugan Syncfusion Team October 23, 2020 10:49 AM UTC

Hi Guillaume, 
 
Thank you for contacting Syncfusion Support. 
 
We have checked your reported issue and the setColWidth method works properly in our end. For your convenience, we have prepared the sample that set the width of the column in button click event. Please find the link below. 
 
 
Could you please check the above sample and get back to us with more details or replicate your issue in the above sample and send to us. Based on that we will check and provide you a better solution quickly. 
 
Regards, 
Sangeetha M 


Marked as answer
Loader.
Up arrow icon