views:

8

answers:

1

For Example:

var tablePanel = new Ext.Panel({
        border: false,
        autoScroll: true,
        layout: 'table',
        layoutConfig: { columns: maxColumns },
        items: items
    });

Can i add rows or cells to that table? And how can i do that? with method .add or? Thanks.

A: 

I think so.

tablePanel.items.add(whatever);
tablePanel.items.add(whatever2);
tablePanel.items.add(whatever3);
tablePanel.items.add(whatever4);
...
tablePanel.doLayout();

In the table layout, there are no explicite row objects; just every group of n columns are one row (ignoring rowspan an colspan), n being the value of layoutConfig: { columns: n }

ammoQ