Hi Jacob,
Thank you for using Syncfusion products.
We have checked your requirement and it has been achieved by using ‘fitWidth()’ client-side method in Spreadsheet. And, currently we don’t have any global setting for achieve the auto fit to width based on column text content. Please refer the below code example.
var dataSource = [
//..
];
$("#Spreadsheet").ejSpreadsheet({
sheets: [{
rangeSettings: [{ dataSource: dataSource }]
}],
loadComplete: "onLoadComplete"
});
function onLoadComplete (args){
if (!this.isImport){
this.XLResize.fitWidth([0,1]); // Column index
}
}
|
Could you please check the above sample and let us know whether is this fulfilling your requirement, if not please share us more information regarding this so that we can analyze based on that and provide you a better solution. The information provided would be great help for us to proceed further.
Regards,
Silambarasan