Results 1 to 3 of 3

Thread: When can I be sure a store is added and ready for a combo?

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Location
    Copenhagen
    Posts
    32
    Answers
    1

    Default When can I be sure a store is added and ready for a combo?

    Hello.

    Using the event 'added' - I find situations where store is null.

    Can this be true, or do I have some other problem I need to look into? Or can it be so, and how do I then make sure I use a listener when I know the store is ready?

    Thanks

  2. #2
    Sencha Premium Member Salakar's Avatar
    Join Date
    Aug 2013
    Location
    Nottingham
    Posts
    90
    Answers
    2

    Default

    PHP Code:
     var loaded true;        
    if (
    store.isLoading()) {
                
    loaded false;    
    }    
    if(
    loaded) {
            
    // do stuff now as the store is loaded    


  3. #3
    Sencha User
    Join Date
    Feb 2012
    Location
    Copenhagen
    Posts
    32
    Answers
    1

    Default

    Problem was indeed mine, the component was destroyed meanwhile and another with the same name was created a few ms later :-(

Posting Permissions

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