如何垂直显示extjs 3.4网格单元格

时间:2014-01-20 09:24:30

标签: javascript extjs

我在列模型中有网格,我想垂直而不是水平显示网格单元格: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,
    }); 
    }); 

你能告诉我如何展示它吗?

0 个答案:

没有答案