WidthChanged: function(sender, args);
sender. Event source.
args. Event information.
The WidthChanged event is fired on changing the column width.
This event is relevant if the TreeList.EnableResizeColumn property is set to true.
To execute this example, create a TreeList component named treeListSett. The component must contain at least one column. Add a handler for the WidthChanged event:
var column = treeListSett.getColumns().getItem(0); column.WidthChanged.add(function (sender, args) { column.setWidth(treeListSett.getOptimalWidthForColumn(0)); });
After executing the example on resizing the first column, optimal width is set for this column.
See also: