0

Can anybody tell How to refresh or reload panel view in extjs4.1

Thanks

mohan
  • 13,035
  • 29
  • 108
  • 178

1 Answers1

4

What you actually need is to refresh a store that populates your panel view. If you have for example:

Ext.define('YourApp.view.YourPanel', {
                extend: 'Ext.grid.Panel',                
                alias: 'widget.yourpanel',                               
                store: 'YourPanelStore'
...

then in the controller all you need to do is:

Ext.getCmp('yourpanel').store.reload();

or

Ext.data.StoreManager.lookup('YourPanelStore').reload();
Miljen Mikic
  • 14,765
  • 8
  • 58
  • 66