Results 1 to 5 of 5

Thread: PullRefresh plugin does not work well with ListPaging plugin

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1795 in a recent build.
  1. #1
    Sencha User edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939

    Default PullRefresh plugin does not work well with ListPaging plugin

    This is the second half of http://www.sencha.com/forum/showthread.php?177665

    Consider the following scenario with dataset of 40 records available:


    1) Store has clearOnLoad: false, pageSize: 24
    2) start is 0.
    3) Store loads with 24 records, getTotalCount is 40, 'start' is now 24
    4) ListPaging invoked - adding 16 more records to store, 'start' is now 48 (> getTotalCount)
    5) ListPaging invoked - no records returned (eg LIMIT 48, 24 on dataset of 40 records)
    6) PullRefresh invoked - with start = 48, so a refresh now returns no records.


    I suggest


    ListPaging should not be allowed to have a start value greater than the getTotalCount.
    ListPaging should be 'disabled' when start + records returned is >= getTotalCount.


    If 'clearonload' is false :
    PullRefresh should always have a start of 0
    PullRefresh should allow for either refreshing from 0 to initial pageSize or 0 to getCount()
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  2. #2
    Sencha User edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939

    Default

    This one didn't get on the block for beta 2, I'm expecting it to be improved for the release after that
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  3. #3
    Sencha User edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939

    Default

    Ok this is much improved now on the b3 branch - the plugins no longer clobber each other when they're both activated. I may add a cheeky little feature in too...
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  4. #4
    Sencha - Support Team keckeroo's Avatar
    Join Date
    Mar 2008
    Location
    Winnipeg, Canada
    Posts
    388

    Default

    Thanks for all your hard work, Ed. Very much appreciated and love to see how ST is allowing apps to become really indistinguishable from native phone apps. That's why I love this sh*t so much :-)

    Kev

  5. #5
    Sencha User edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939

    Default

    You're welcome
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

Posting Permissions

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