TabSheetMeasures.ColumnResizeEnabled

Syntax

ColumnResizeEnabled: Boolean;

Description

The ColumnResizeEnabled property determines whether column width can be changed using the mouse.

Comments

Use the setColumn method to set the property value, and the getColumnResizeEnabled method to get the property value.

The following two parameters are specified on calling the setColumnResizeEnabled method: colIndex - table column index, and value (Boolean) - whether column width can be changed.

On calling the getColumnResizeEnabled method specify one parameter: colIndex - table column index, for which you want to get whether width can be changed.

Example

To execute the example, the HTML page must contain the TabSheet component named tabSheet (see Example of Creating the TabSheet Component). Prohibit changing of width of the column with index 1 and display whether column width and row height with index 1 can be changed:

// Prohibit changing of width of the column with index 1 (column B)
tabSheet.getMeasures().setColumnResizeEnabled(1, False);
// Display the message whether column width and row height with index 1 can be changed
alert("Column 1 ResizeEnabled = " + tabSheet.getMeasures().getColumnResizeEnabled(1) +
"\n" + "Row 1 ResizeEnabled = " + tabSheet.getMeasures().getRowResizeEnabled(1));

After executing the example it is prohibited to change width of the column with index 1 and the message is displayed whether column width and row height with index 1 can be changed.

See also:

TabSheetMeasures