1. #1
    Ext User
    Join Date
    Apr 2008
    Posts
    6
    Vote Rating
    0
    ceric35 is on a distinguished road

      0  

    Default [FNR] TableColumn.setHidden has no effect

    [FNR] TableColumn.setHidden has no effect


    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.

  2. #2
    Ext User
    Join Date
    Apr 2008
    Posts
    6
    Vote Rating
    0
    ceric35 is on a distinguished road

      0  

    Default


    here is a code sample:

    Code:
    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...

  3. #3
    Ext User
    Join Date
    Apr 2008
    Posts
    6
    Vote Rating
    0
    ceric35 is on a distinguished road

      0  

    Default


    still present in beta3

  4. #4
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    Fix is in SVN.

Thread Participants: 1