我在列模型中有网格,我想垂直而不是水平显示网格单元格:http://dev.sencha.com/deploy/ext-3.4.0/examples/view/data-view.html;这是我的代码
Ext.onReady(function(){
var data = [
['myNewdata'],
['myNewdata'],
['myNewdata'],
];
var store = new Ext.data.ArrayStore({
fields: [
{ name: "state",type: "string"}
],
data: data
});
Cm = new Ext.grid.ColumnModel({
defaults: {
sortable: true
},
columns:[
{ header: "State",dataIndex: "state" },
]
});
var grid = new Ext.grid.GridPanel({
renderTo:Ext.getBody(),
autoHeight: true,
ds : store,
cm:Cm,
});
});
你能告诉我如何展示它吗?