ListView loadMore errors

5 posts, 0 answers
  1. Don
    Don avatar
    66 posts
    Member since:
    Jun 2012

    Posted 16 Feb 2014 Link to this post

    I have a ListView that gets data from a remote source.  My first choice is to use endless scrolling.  *It works fine in the emulator.*  However, I, like many others, am experiencing performance problems with ListView and endless scrolling (http://www.telerik.com/forums/problem-with-endless-scrooling-on-listview#QkyYNAaP7EahBSMToDmrcQ, http://www.telerik.com/forums/listview-endless-scrolling-problems) on a variety of devices (Galaxy S4, Nexus 7).  It is unusable.  So, I thought I'd give loadMore a try instead.  To turn it on, I simple change:

    endlessScroll: true,
    loadMore: false

    in my ListView initialization to

    endlessScroll: false,
    loadMore: true

    The initial data loads and scrolls fine.  But when I get to the "load more" button and then click it, the new data is appended to the bottom of the list as expected, but the load more button does not disappear (the load more button is superimposed over the new data).  Also, when I try to scroll down, it scrolls just a few pixels and then stops.  If I try to scroll again, again, it moves a few pixels then stops and in the debugger I see many instances of this exception:

    Uncaught TypeError: undefined has no properties cordova.js:149
    _raiseTouchEvent 

    Let me reiterate that I believe everything is set up correctly because, as I stated, endless scrolling works fine in the emulator.  My AppBuilder project is using Kendo UI Mobile v2013.2.1021.

    This has been an incredibly frustrating experience.  I hope you can at least provide an answer to this loadMore issue or, better yet, get endless scroll working.


  2. Don
    Don avatar
    66 posts
    Member since:
    Jun 2012

    Posted 16 Feb 2014 in reply to Don Link to this post

    EDIT:  To clarify, I am seeing the "loadMore" exceptions in both the emulator and on devices.
  3. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 19 Feb 2014 Link to this post

    Hi Donald,

    the problem you describe is not a known one. In fact, both endless scrolling and load more use the same implementation, the difference being that endless scrolling automatically fetches new data. 

    Is it possible for you to test our endless scrolling/load more examples on the device in question, and see if they work as expected? This should help us narrow down the possible causes of the problem.

    Regards,
    Petyo
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  4. Don
    Don avatar
    66 posts
    Member since:
    Jun 2012

    Posted 01 Mar 2014 in reply to Petyo Link to this post

    It appears as though the problems I was experiencing were related to using ListView's setDataSource() with endlessScroll while changing the dataSource between 2 remote data sources.  I encountered a slew of problems when I tried to do this including the problem I describe in the original post as well as one described here http://www.telerik.com/forums/problem-with-endless-scrooling-on-listview#QkyYNAaP7EahBSMToDmrcQ, http://www.telerik.com/forums/listview-endless-scrolling-problems .  In any case, not using setDataSource() and instead using 2 different ListViews seemed to make the problems go away for me.  However, I believe this is still a Kendo UI Mobile bug because I did not find anything in the documentation to indicate that setDataSource() should not be used with endlessScroll and a remote dataSource.
  5. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 03 Mar 2014 Link to this post

    Hi Donald,

    thank you very much for getting back to us - indeed, we have not tested the scenario you describe. I will log this for further investigation - we will look into either addressing it or documenting it as a known limitation. 

    Regards,
    Petyo
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top