This is a migrated thread and some comments may be shown as answers.

ListView loadMore errors

4 Answers 61 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Don
Top achievements
Rank 1
Don asked on 16 Feb 2014, 07:00 AM
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.


4 Answers, 1 is accepted

Sort by
0
Don
Top achievements
Rank 1
answered on 16 Feb 2014, 07:27 AM
EDIT:  To clarify, I am seeing the "loadMore" exceptions in both the emulator and on devices.
0
Petyo
Telerik team
answered on 19 Feb 2014, 04:48 PM
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!
0
Don
Top achievements
Rank 1
answered on 01 Mar 2014, 10:04 PM
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.
0
Petyo
Telerik team
answered on 03 Mar 2014, 09:52 AM
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!
Tags
Report a bug
Asked by
Don
Top achievements
Rank 1
Answers by
Don
Top achievements
Rank 1
Petyo
Telerik team
Share this question
or