ExtJS - PivotGrid

var store = new Ext.data.Store({   
 url: '',   
 //autoLoad: true,   
 reader: new Ext.data.JsonReader({       
  root: ''
 }, Ext.data.Record.create([   
  {name: 'id', mapping: 'id'},
  {name: 'col1', mapping: 'col1'},
  {name: 'col2', mapping: 'col2'},
  {name: 'col3', mapping: 'col3'},
  {name: 'col4', mapping: 'col4'},
  {name: 'col5', mapping: 'col5'}
 ]))}
);
//Grid Panel
var grid = new Ext.grid.PivotGrid({
 title: 'TITLE',
 renderTo: 'div1',
 columnLines: true,
 stripeRows : true,
 loadMask : {msg : 'Loading...'},
 autoWidth: true,
 aggregator: 'sum',
 measure: 'col5',
 viewConfig: { title: 'Product ID'},
 store:  srp.wo.gridStore,
 leftAxis: [
  {dataIndex: 'col1', width: 25},
  {dataIndex: 'col2', width: 35}
 ],
 topAxis: [
  {dataIndex: 'col3'},
  {dataIndex: 'col4'}
 ]
});
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值