pest
21 Jan 2011, 2:21 AM
Hi there!
I have a JsonStore with an autoload:
var generalstore = new Ext.data.JsonStore({
root: 'result',
totalProperty: 'total',
url: '<?php echo url_for('modul/HistogrammSQL?id='.$modul->getId()) ?>',
autoLoad: true,
fields: ['Dauer', 'Anzahl'],
listeners: {
load: function ()
{
if (generalstore.getCount()>0)
{
if (formstore.getCount()==0)
formstore.reload();
}
}
}
});
but when the store load the data, the loading indicator does not appear.
With generalstore.reload() it's the same behaviour.
The store is used by a ColumnChart:
var MyChart = new Ext.chart.ColumnChart({
xtype: 'columnchart',
store: generalstore,//histogrammstore,
xField: 'Dauer',
yField: 'Anzahl',
xAxis: myXAxis,
yAxis: new Ext.chart.NumericAxis({
title: 'Anzahl'
}),
extraStyle: {
yAxis: {
titleRotation: -90
}
}
});
Has anyone a clue?
Bye,
Peter
I have a JsonStore with an autoload:
var generalstore = new Ext.data.JsonStore({
root: 'result',
totalProperty: 'total',
url: '<?php echo url_for('modul/HistogrammSQL?id='.$modul->getId()) ?>',
autoLoad: true,
fields: ['Dauer', 'Anzahl'],
listeners: {
load: function ()
{
if (generalstore.getCount()>0)
{
if (formstore.getCount()==0)
formstore.reload();
}
}
}
});
but when the store load the data, the loading indicator does not appear.
With generalstore.reload() it's the same behaviour.
The store is used by a ColumnChart:
var MyChart = new Ext.chart.ColumnChart({
xtype: 'columnchart',
store: generalstore,//histogrammstore,
xField: 'Dauer',
yField: 'Anzahl',
xAxis: myXAxis,
yAxis: new Ext.chart.NumericAxis({
title: 'Anzahl'
}),
extraStyle: {
yAxis: {
titleRotation: -90
}
}
});
Has anyone a clue?
Bye,
Peter