Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    134
    Vote Rating
    1
    stefankendall is an unknown quantity at this point

      0  

    Default [2.1.0] List events fire before store data is loaded and rendered.

    [2.1.0] List events fire before store data is loaded and rendered.


    I have a list that uses a store, and in ST2.0.0, the initialize event only ever fired after the store was loaded.

    In ST2.1.0, the initialize fires *before* the store is loaded and thus before any list items are rendered.

    I'm using the initialize event to do processing of the list rendered list items, and I now have no good way of attaching to that event, it seems.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,547
    Vote Rating
    872
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      1  

    Default


    The initialize event says this in the API Docs:

    Fires when the component has been initialized
    So the initialize event should not wait for the store data to load or anything. Have you tried the refresh event?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Apr 2011
    Posts
    134
    Vote Rating
    1
    stefankendall is an unknown quantity at this point

      0  

    Default


    'refresh' is also too early, but the 'updatedata' event fires exactly when I need it to, and semantically, it makes sense to apply my post-processing whenever the data changes.

    This *is* a change from ST2.0.0, but it's not a bug. If anything it might be a bugfix.

  4. #4
    Sencha User
    Join Date
    Apr 2011
    Posts
    134
    Vote Rating
    1
    stefankendall is an unknown quantity at this point

      0  

    Default


    Actually, this is an issue.

    updatedata never fires, and refresh fires too early.

Thread Participants: 1