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.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar