Results 1 to 3 of 3

Thread: 4.2 viewready fires before load

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha Premium Member
    Join Date
    Apr 2007
    Posts
    92
    Answers
    2
    Vote Rating
    73
      1  

    Default 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
    6,154
    Answers
    501
    Vote Rating
    247
      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
    92
    Answers
    2
    Vote Rating
    73
      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.

Posting Permissions

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