PDA

View Full Version : add progress when menu first expand



dave0224
20 May 2009, 12:40 AM
hello all

how can i add progress when menu first expand

the menu has 1000 item

the code is error.



menu.addListener( 'beforeshow', function() {

Ext.MessageBox.show({
progressText: 'loading...',
width:250,
progress:true,
closable:false
});
Ext.MessageBox.updateProgress(1);


}
);

menu.addListener( 'show', function() {
Ext.dd.DragDropMgr.unlock();
Ext.MessageBox.hide();
}
);



thanks for any valuable response.

20 May 2009, 5:44 AM
wwwwwwooooooooooooooah! 1 thousand items?! good lord.