1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    13
    Vote Rating
    0
    Pratik Sharma is on a distinguished road

      0  

    Default Answered: How to scroll to bottom of list after populating list items from store

    Answered: How to scroll to bottom of list after populating list items from store


    Hi,

    How to scroll to bottom of list after populating list items from store?

    List.scroller method is not working in sencha 2 as it is supporting in sencha 1.

  2. Use something like this:

    Code:
    var scroller = Ext.getCmp('ext-list-1').getScrollable().getScroller();
    scroller.scrollToAnimated(0, scroller.getSize().y - scroller.getContainerSize().y);
    There will be a convince method in the next release.

  3. #2
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    Answers
    93
    rdougan will become famous soon enough

      0  

    Default


    Use something like this:

    Code:
    var scroller = Ext.getCmp('ext-list-1').getScrollable().getScroller();
    scroller.scrollToAnimated(0, scroller.getSize().y - scroller.getContainerSize().y);
    There will be a convince method in the next release.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  4. #3
    Sencha User
    Join Date
    Nov 2011
    Posts
    13
    Vote Rating
    0
    Pratik Sharma is on a distinguished road

      0  

    Default Thanks

    Thanks


    Thanks for the reply.

    I have try out your given solution and it works like a charm.

Thread Participants: 1

Tags for this Thread