ColumnWidth: Number
The ColumnWidth property determines width of specified table column.
Use the setColumnWidth method to set the property value, and the getColumnWidth method to get the property value. Property value cannot be set from JSON.
The following two parameters are specified on calling the setColumnWidth method: value - new value of the column width, and colIndex - index of this column.
The following parameters are specified on calling the getColumnWidth method: colIndex - index of the column, for which we get the width value, isVirtual - characteristic that indicated if virtual or real column is addressed.
To execute the example, the HTML page must contain the TabSheet component named tabSheet (see Example of Creating the TabSheet Component). Change width of the first column and height of the first row in the table, enable displaying icons that indicate access permissions for cells:
// Get table dimensions var measures = tabSheet.getMeasures(); // Change width of the column with index 0 measures.setColumnWidth(50,0); // Change height of the row with index 0 measures.setRowHeight(30,0); // Enable displaying icons of access permissions to table cells measures.setDisplayAccessRights(True); // Rerender table tabSheet.rerender();
After executing the example width of the first column and height of the first row in the table are changed:
See also: