extjs3.3中的水平可滚动网格
我是ExtJS新手,在一个600px宽的Ext.grid.EditorGridPanel中很难容纳大量的列(参见下面的示例)。将所有网格列滚动到一起或类似的方式即可extjs3.3中的水平可滚动网格,extjs,extjs3,Extjs,Extjs3,我是ExtJS新手,在一个600px宽的Ext.grid.EditorGridPanel中很难容纳大量的列(参见下面的示例)。将所有网格列滚动到一起或类似的方式即可 var grid = new Ext.grid.EditorGridPanel( this.getGridConfig('', ['a', 'b', 'c', '...', 'x', 'y', 'z'], [ { dataIndex: 'a', header:
var grid = new Ext.grid.EditorGridPanel(
this.getGridConfig('', ['a', 'b', 'c', '...', 'x', 'y', 'z'], [
{
dataIndex: 'a',
header: 'A',
editor: new Ext.form.TextField({width: 200, allowEmpty: false})
},
{
dataIndex: 'b',
header: 'B',
editor: bCombo,
} /* many more column definitions here... */],
definitions,
'disabled'
)
);
我尝试在几个不同的级别设置
autoScroll=true
,但没有任何运气。ExtJS3.3中是否有一种机制可以处理成吨的网格列,类似于提供的机制 我已经解决了这个问题,将Ext.grid.EditorGridPanel与下面的面板包装在一起,并调整其宽度以很好地容纳所有列
var gridPanel = new Ext.Panel({
width: '100%',
height: '100%',
renderTo: Ext.getBody(),
autoScroll: true
});