PDA

View Full Version : [FNR] TableColumn.setHidden has no effect



ceric35
30 Apr 2008, 1:39 AM
Hi,

Since mygwt-0.5.2, TableColumn.steHidden(boolean) has
no effects.
Even call to table.recalculate() doesn't hide/unhide columns

Worked fine with mygwt-0.5.1.

ceric35
19 May 2008, 8:57 AM
here is a code sample:


package org.codelutin.testGWT.client;

import com.extjs.gxt.ui.client.widget.table.Table;
import com.extjs.gxt.ui.client.widget.table.TableColumn;
import com.extjs.gxt.ui.client.widget.table.TableColumnModel;
import com.extjs.gxt.ui.client.widget.table.TableSelectionModel;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;

/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class FirstTest implements EntryPoint {

/**
* This is the entry point method.
*/
public void onModuleLoad() {

Table<TableSelectionModel> table;

TableColumn[] columns = new TableColumn[3];
columns[0] = new TableColumn("TITLE", "Titre", 225);
columns[0].setSortable(false);

columns[1] = new TableColumn("VERSION", "Ver.", 35);
columns[1].setHidden(true);
columns[1].setSortable(false);

columns[2] = new TableColumn("FOLDER", "Dossier", 175);
columns[2].setSortable(false);

TableColumnModel<TableColumn> cm = new TableColumnModel<TableColumn>(columns);

table = new Table<TableSelectionModel>(cm);

RootPanel.get().add(table);

}
}

Column VERSION should be invisible, but still apear...

ceric35
20 May 2008, 9:33 AM
still present in beta3

darrellmeyer
20 May 2008, 11:40 AM
Fix is in SVN.