1. #1
    Sencha User
    Join Date
    May 2008
    Location
    Munich
    Posts
    22
    Vote Rating
    1
    Spiff1 is on a distinguished road

      0  

    Default Refresh grid at startup

    Refresh grid at startup


    Hello,
    i have a grid in a window in a tab.
    When i activate the tab i can see the window with the grid inside. But no data.
    When i press the refresh button of teh grid the data is displayed.
    How can i display the data when i activate the tab?

    BR
    Spiff1

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,148
    Vote Rating
    673
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Something like:

    Code:
    myTabs.on('activate', function(panel)
    {
       if (panel is your gridpanel, or contains your grid)
          panel.getStore().load(); //or other appropriate store load method.
    }
    );

Thread Participants: 1