TreeColumn.WidthChanged

Syntax

WidthChanged: function(sender, args);

Parameters

sender. Event source.

args. Event information.

Description

The WidthChanged event is fired on changing the column width.

Comments

This event is relevant if the TreeList.EnableResizeColumn property is set to true.

Example

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:

TreeColumn