Results 1 to 2 of 2

Thread: Reverse pagination dataview list

  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    83

    Default Reverse pagination dataview list

    Hello,
    I am trying to create a messaging app using the dataview.list and paging plugin. I would like to have the newest message on the bottom of the list. When the user scrolls to the top, list next page loads. I understand that I need to sort the messages by date and automatically scroll to the bottom of the list. But how (or is it even possible) to have the pagenation fire when scrolled to the top?

    Thanks

  2. #2
    Sencha Premium User
    Join Date
    Oct 2012
    Location
    United States
    Posts
    130
    Answers
    11

    Default

    Quote Originally Posted by Johnbran View Post
    Hello,
    I am trying to create a messaging app using the dataview.list and paging plugin. I would like to have the newest message on the bottom of the list. When the user scrolls to the top, list next page loads. I understand that I need to sort the messages by date and automatically scroll to the bottom of the list. But how (or is it even possible) to have the pagenation fire when scrolled to the top?

    Thanks

    I've never looked into that, and i'm not sure that's a setting...
    If i were to try and hack a solution, I would probably start by sorting that list by ascending, and set the proxy to load the last page, and after the data loads select the last item at the bottom of the gird. The upwards scrolling should work from there..

Similar Threads

  1. How to group items in Ext.dataview.List after pagination
    By Rob16299 in forum Sencha Touch 2.x: Q&A
    Replies: 4
    Last Post: 23 Aug 2013, 8:37 AM
  2. Reverse list (newest item on bottom aso)
    By SargTeX in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 26 Nov 2012, 6:04 AM
  3. Dataview with Pagination
    By wekkaw in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 2 Dec 2008, 9:17 AM

Posting Permissions

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