Results 1 to 3 of 3

Thread: Detect when scrolling is near the end of a Dataview.

  1. #1
    Ext JS Premium Member
    Join Date
    Nov 2009
    Location
    Cave
    Posts
    178
    Answers
    2
    Vote Rating
    2
      0  

    Default Answered: Detect when scrolling is near the end of a Dataview.

    Hi, I am trying to emulate an infinite scroller in my dataview and was hoping there was a way to detect when scrolling was at the end of a container/dataview.
    any help would be much appreciated.
    Thanks!

  2. Have a look at:

    grid.getView().el.dom.scrollTop;
    grid.getView().el.dom.scrollHeight;

    Scott.

  3. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,389
    Answers
    716
    Vote Rating
    498
      0  

    Default

    Have a look at:

    grid.getView().el.dom.scrollTop;
    grid.getView().el.dom.scrollHeight;

    Scott.

  4. #3
    Ext JS Premium Member
    Join Date
    Nov 2009
    Location
    Cave
    Posts
    178
    Answers
    2
    Vote Rating
    2
      0  

    Default

    gr8 thanks, i'll check those events out.

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
  •