Results 1 to 3 of 3

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

  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    13
    Vote Rating
    0
      0  

    Default 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 User rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,159
    Answers
    93
    Vote Rating
    7
      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
      0  

    Default Thanks

    Thanks for the reply.

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

Tags for this Thread

Posting Permissions

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