Results 1 to 4 of 4

Thread: Widgets (like Button / IconButton) in Table

  1. #1
    Sencha User
    Join Date
    Apr 2008
    Posts
    18

    Default Widgets (like Button / IconButton) in Table

    I could in myGWT insert widgets (like Button / IconButton) to the cell of Table, but in ExtGWT I can't. Is it bug?

    Code:
        private ContentPanel genTable() {
            List<TableColumn> columns = new ArrayList<TableColumn>();
            TableColumn tc1 = new TableColumn("Name", "Name", 150);
            TableColumn tc2 = new TableColumn("Action1", "Action1", 150);
            TableColumn tc3 = new TableColumn("Action2", "Action2", 150);
            columns.add(tc1);
            columns.add(tc2);
            columns.add(tc3);
    
            Table tbl = new Table(new TableColumnModel(columns));
            tbl.selectionMode = SelectionMode.SINGLE;
            tbl.horizontalScroll = true;
    
            for (int i = 0; i < 10; i++) {
                Object[] values = new Object[3];
                values[0] = "Record " + i;
                values[1] = new IconButton("cbs-icon-table-up");
                values[2] = new Button("Click");
                TableItem item = new TableItem(values);
                tbl.add(item);
            }
    
            ContentPanel panel = new ContentPanel();
            panel.collapsible = false;
            panel.frame = false;
            panel.animCollapse = false;
            panel.setIconStyle("icon-table");
            panel.setHeading("Table Demo");
            panel.setLayout(new FitLayout());
            panel.add(tbl);
            panel.setSize(575, 350);
            return panel;
        }
    The generated table contains 10 records with the content in first column, but second and third columns are empty. With myGWT I saw there icon and button.

    (I work with Firefox browser)

  2. #2
    Sencha User darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242

    Default

    If you are adding widgets to the table then you need to set the bulkRender field to false.
    Code:
    table.bulkRender = false;
    // type in beta1
    table.buildRender = false;
    Let me know that does not work for you.

  3. #3
    Ext User
    Join Date
    Apr 2008
    Location
    Munich, Germany
    Posts
    43

    Default

    Using RC1b
    Why isn't there a flag "bulkRender" in the TreeTable?

  4. #4
    Ext User
    Join Date
    Apr 2008
    Location
    Munich, Germany
    Posts
    43

    Default

    Issue has opened in a separate thread:
    http://extjs.com/forum/showthread.php?t=39363

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •