Results 1 to 4 of 4

Thread: Examples loading grids on tab change?

  1. #1
    Sencha User
    Join Date
    Jun 2009
    Posts
    2
    Vote Rating
    0
      0  

    Default Examples loading grids on tab change?

    I'm looking for sample code that would demonstrating loading a grid from a database (or really any other server initiated activity) when an ext.js tab change event fires. I'm willing to use either version 3 or version 4...whichever I can get help on quickest!

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Vote Rating
    253
      0  

    Default

    If the grid is the tab I'd think you could in your grid config you can set up a listener on tabchange like:
    Code:
     
    ,listeners : {
        tabchange : function(){
            this.store.reload()
        }
    }
    Will that work?

  3. #3
    Sencha User
    Join Date
    Jun 2009
    Posts
    2
    Vote Rating
    0
      0  

    Default

    I'll try that, thanks

  4. #4
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,060
    Vote Rating
    1389
      0  

    Default

    I would listen for the activate event on the Grid to load the Store. tabchange will be fired on the TabPanel and not the Grid and each tab may not be Grids.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Similar Threads

  1. [1.1.0] examples/forms -> loading.gif
    By tobiu in forum Sencha Touch 1.x: Bugs
    Replies: 0
    Last Post: 28 Mar 2011, 2:17 PM
  2. Weird behavior loading XML (one of the examples)
    By Chamster in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 9 Jun 2008, 2:50 AM
  3. Replies: 11
    Last Post: 6 Mar 2008, 8:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •