1. #1
    Sencha Premium Member
    Join Date
    Apr 2007
    Posts
    86
    Answers
    2
    Vote Rating
    6
    bobmanc is on a distinguished road

      1  

    Default Unanswered: 4.2 viewready fires before load

    Unanswered: 4.2 viewready fires before load


    This seems like a bug it worked the opposite way in 4.1 and the documentation says

    viewready: Fires when the grid view is available (use this for selecting a default row).

    You can't select a default row if the data hasn't loaded yet.

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,355
    Answers
    429
    Vote Rating
    198
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    You could have a view configured with a store and the store is loaded with data. Or you could have a view configured with a store and the store is not yet loaded with data (synced / loaded manually). I'd think the view would fire/bubble the viewready event regardless of its store's load status. You'd just have to check once fired to see if the store is populated with records (or in the middle of loading, etc.) before taking action on its records.

  3. #3
    Sencha Premium Member
    Join Date
    Apr 2007
    Posts
    86
    Answers
    2
    Vote Rating
    6
    bobmanc is on a distinguished road

      1  

    Default


    That is not what the documentation says. The only way to select a default row is if the event always fires after the load event.

Thread Participants: 1