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'}
]
});