Hello,
can anybody please tell me how to set dynamic column width in spreadsheet.
In webix 5.3 version.
Hello @Vaishnavi,
As a solution, you can set the width for columns via setColumnWidth(id,width)
where your first argument is the id
of your column you want to resize, and the second argument is the width
. The setColumnWidth()
is a method of the inner datatable within Spreadsheet widget, so you need to access it as:
$$("ss").$$("cells").setColumnWidth(columnId, width);
Please take a look at the following example:
https://snippet.webix.com/wkl9bjqc