jeromer
1 Sep 2011, 2:20 PM
I have the following code in my app. When I update the progressbar like, CP.pgBar.updateProgress(.5), nothing happens. I suspect it has something to due with it being an item of a menu. I have stopped the app in debug and tried various ways to make the progress bar move. I want the progress update to take place in the saveTree function which the Ext.Array.each fires. I'm successful with the updateText method and reset, but not with updateProgress. Any suggestions?
var pgb = Ext.create('Ext.ProgressBar',{
text:'Updating...',
width:200
});
CP.pgBar = pgb;
var smenu = Ext.create('Ext.menu.Menu',{
width:200,
// height:75,
plain:true,
float:true,
shadow:true,
//margin: '5 5 5 5',
frame:true,
items:[
pgb
]
});
smenu.show();
//pgb.wait({interval:50000,increment:10,duration:50000,text:'Saving...',scope:this});
Ext.Array.each(r.childNodes,this.saveTree);
var pgb = Ext.create('Ext.ProgressBar',{
text:'Updating...',
width:200
});
CP.pgBar = pgb;
var smenu = Ext.create('Ext.menu.Menu',{
width:200,
// height:75,
plain:true,
float:true,
shadow:true,
//margin: '5 5 5 5',
frame:true,
items:[
pgb
]
});
smenu.show();
//pgb.wait({interval:50000,increment:10,duration:50000,text:'Saving...',scope:this});
Ext.Array.each(r.childNodes,this.saveTree);