Hybrid View

  1. #1
    Sencha User DrunkenBeard's Avatar
    Join Date
    May 2011
    Posts
    55
    Vote Rating
    -2
    DrunkenBeard has a little shameless behaviour in the past

      0  

    Default Event after all the elements of a list were rendered

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,548
    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

      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 @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.

Thread Participants: 1