PDA

View Full Version : PivotGrid issues



raj_plays
25 Feb 2011, 6:22 AM
Hi,
I tried to run the PivotGrid example with an ArrayStore.
It shows the data correctly but doesn't show the top and left headers.
I am using ext-3.3.1 and IE 8.


var PersonRecord = Ext.data.Record.create([{
name: 'birthDecade',
type: 'string'
}, {
name: 'gender',
type: 'string'
}]);
var myStore = new Ext.data.ArrayStore({
fields: PersonRecord,
data: [
['2000', 'Male'],
['2000', 'Male'],
['2001', 'Male'],
['2000', 'Female']
]
});
var perDecade = new Ext.grid.PivotGrid({
title: 'Number of people born per decade',
width: 600,
height: 100,
renderTo: 'days-grid',
store: myStore,
aggregator: 'count',
viewConfig: {
title: 'yes'
},
topAxis: [{
width: 80,
dataIndex: 'birthDecade'
}],
leftAxis: [{
dataIndex: 'gender',
width: 100
}]
});


Can someone look please.

zhongji
9 Mar 2011, 4:54 PM
I am getting the same error, I know nothing about that.

aboudard
23 May 2011, 5:06 AM
I have the exact same behavior but only when I integrate the PivotGrid in a TabPanel.
Otherwise, the pivotgrid works (not so bad ... )
:-?
I don't know if it's a bug or what ...