Hybrid View

  1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    89
    Vote Rating
    0
    newusername is on a distinguished road

      0  

    Default storing data in store to be get displayed in grid

    storing data in store to be get displayed in grid


    Hi ,

    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...

    Thanks

  2. #2
    Sencha User
    Join Date
    Jan 2011
    Posts
    546
    Vote Rating
    52
    willigogs is a jewel in the rough willigogs is a jewel in the rough willigogs is a jewel in the rough

      0  

    Default


    Here's an example:
    http://dev.sencha.com/deploy/ext-3.4...l/restful.html

    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().

Thread Participants: 1