Results 1 to 2 of 2

Thread: Event after all the elements of a list were rendered

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User DrunkenBeard's Avatar
    Join Date
    May 2011
    Posts
    55
    Vote Rating
    -1
      0  

    Default Event after all the elements of a list were rendered

    Hi,

    I'm trying to scroll to an element of a list after it is rendered (there is no tap events involved or any interaction with the user whatsoever, the list should just scroll to a certain element immediately after being rendered). In other words I need to listen to some event that is fired after all the elements of the list have been rendered and then scroll. The only event that I have found so far is "painted" but it fires before any elements were rendered.

    Any ideas ?

    Thanks

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      0  

    Default

    I usually use the refresh method, it will fire before the list is populated so you have to check this but it will fire after the store is loaded.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Posting Permissions

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