View Full Version : Table column size is not responding as per it's width set.
Rakesh Kumar
13 Jan 2009, 3:31 AM
I have tried to set size of the column width of the Table componenet of the Ext-Gwt(version 1.2.1) but it taking the size of the first column or smallest one column size in general. It does not allow the different column size set for different columns.:)
Please post some working and complete example of your code.
kolli
13 Jan 2009, 5:58 AM
private TableColumnModel cm = new TableColumnModel(columns);
private Table table=new Table(cm);
must be placed after the columns are added to the list.
then the column size will be as mentioned when declaring the columns.
Rakesh Kumar
13 Jan 2009, 9:05 PM
Bunch of Thanks Ravi, It worked fine.:)
Rakesh Kumar
13 Jan 2009, 9:09 PM
Please post some working and complete example of your code.
private List<TableColumn> columns = new ArrayList<TableColumn>();
private TableColumnModel cm = new TableColumnModel(columns);
private Table tbl = new Table(cm);
TableColumn colName = new TableColumn("WWWW", 100);
colName .setAlignment(HorizontalAlignment.CENTER);
colName .setResizable(true);
colName .add(colPatientName);
---------------------------------------
private List<TableColumn> columns = new ArrayList<TableColumn>();
private TableColumnModel cm ;
private Table tbl ;
TableColumn colName = new TableColumn("WWWW", 100);
colName .setAlignment(HorizontalAlignment.CENTER);
colName .setResizable(true);
colName .add(colPatientName);
cm = new TableColumnModel(columns);
tbl = new Table(cm)
kolli
14 Jan 2009, 5:44 AM
you are welcome.
user123
4 Mar 2009, 8:27 AM
Do you mean that at runtime I can't change column width? I need to resize a column on treetable resize. Have no idea how to do it.
setWidth() seems to work incorrect.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.