0

これはおそらく書式設定で簡単に行うことができます。グリッドに行を追加すると、空白になります

行を追加するコード:

var innerArray = Array(
        {'ID':'aaa','Text':'aaa'}
        );
searchCriteria.add(innerArray);

テーブルを作成するコード

var searchCriteria = Ext.create('Ext.data.Store', {
// store configs
autoDestroy: true,
storeId: 'myStore',
// reader configs
idIndex: 0,
fields: [
   'ID',
   'Text'
]
});

パネル

var resultsPanel = Ext.create('Ext.panel.Panel', {
    title: 'Search Criteria',
    layout: 'fit',
    height: 400,
    renderTo: Ext.getBody(),
    layout: {
        type: 'vbox', // Arrange child items vertically
        align: 'stretch', // Each takes up full width
        padding: 5
    },
    items: [{ // Results grid specified as a config object with an xtype of 'grid'
        xtype: 'grid',
        columns: [
            {
                header: 'ID'
            },
            {
                header: 'Text'  
            }
        ], // One header just for show. There's no data,
        store: searchCriteria,
        flex: 1 // Use 1/3 of Container's height (hint to Box layout)
    }]
});

行が追加されますが、何が間違っていますか?

4

1 に答える 1