1. #1
    Ext User
    Join Date
    May 2008
    Posts
    10
    Vote Rating
    0
    dijimon is on a distinguished road

      0  

    Thumbs up TreeTable items not rendering in Window

    TreeTable items not rendering in Window


    Hi,

    I have created a TreeTable which is added to a Window.
    When the window is shown, the table columns are visible, but not the table items.

    If I then hide/show a column using the column menu, the items are shown.

    When I use the same window code with a standard Table object, the table items are displayed.

    Code:
    private void showTable() {
            List<TreeTableColumn> columns = new ArrayList<TreeTableColumn>();
            columns.add(TableUtils.getSortedTreeTableColumn("description", "Description", 200));
            columns.add(TableUtils.getMoneyTreeTableColumn("amount", "Amount", 120, true));
            columns.add(TableUtils.getLocalDateTreeTableColumn("date", "Date", 120, false));
    
            /* create the column model */
            TreeTableColumnModel cm = new TreeTableColumnModel(columns);
            TreeTable table = TableUtils.getTreeTable(cm);
    
            /* code to load data is here */
    
            /* bind data to table and load */
            TreeTableBinder<BaseTreeModel> binder = new TreeTableBinder<BaseTreeModel>(table, store);
            binder.setDisplayProperty("description");
            binder.setAutoLoad(true);
            binder.init();
    
            showTableWindow(heading, table);
    }
    
    private void showTableWindow(String heading, final Container container) {
            final Window window = new Window();
            window.setHeading(heading);
            window.setMaximizable(true);
            window.setWidth(600);
            window.setHeight(300);
            window.setLayout(new FitLayout());
            window.add(container);
            window.layout();
            window.show();
    }
    I know the code to load the data works because the items are displayed when I hide a column and when I show the column again.

    Is there anything special about when/how TreeTable items are rendered and how can I get this to work?

  2. #2
    Ext User
    Join Date
    May 2008
    Posts
    10
    Vote Rating
    0
    dijimon is on a distinguished road

      0  

    Default Sorry, wrong forum. Meant for GXT

    Sorry, wrong forum. Meant for GXT


    Sorry wrong forum. This is meant for GXT.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."