+ -
当前位置:首页 → 问答吧 → Ext.grid.PivotGrid 有用过的么?

Ext.grid.PivotGrid 有用过的么?

时间:2011-09-27

来源:互联网

要做一个类似excel 的数据报表,查了查 ext 的 例子
发现Ext.grid.PivotGrid 比较合适 但是例子中给的都是假数据 ,与动态的写法还有很大不同,望用过的哥哥们 给个例子

作者: tjzero_sapce   发布时间: 2011-09-27

JScript code
var pivotGrid = new Ext.grid.PivotGrid({  
    title     : 'PivotGrid example',  
    store     : myStore,  
    aggregator: 'sum',  
    measure   : 'value',  
   
    leftAxis: [  
        {dataIndex: 'person',  width: 80},  
        {dataIndex: 'product', width: 90}  
    ],  
   
    topAxis: [  
        {dataIndex: 'year'},  
        {dataIndex: 'city'}  
    ]  
});  

没大怎么搞过这种 不过有个demo不知能否帮得上楼主

作者: fanchuanzhidu   发布时间: 2011-09-27

相关阅读 更多