I have a button , clicking on which I need to go to server fetch data from database and when it comes back I need to show that data into Grid . How Can I achieve this using GridPanel ? Please put some code for better understanding...
Basically you will setup a store, and connect that to your grid. Then on clicking the button simply perform store.load(). In the example above, the store.load() function is called on page load - but you'd simply move that onto a button handler.
Alternatively you can perform a manual ajax request, then insert the returned data into the store with store.loadData().