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

Terminated due to Memory Pressure!!??

5 Answers 71 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Bassanio
Top achievements
Rank 1
Bassanio asked on 25 Feb 2014, 10:33 AM
Added approx. 600 records into ListView, only contain company names. Got "Terminated due to Memory Pressure" on iOS7, but work properly on iOS6.

Anything I can do?

5 Answers, 1 is accepted

Sort by
0
Bassanio
Top achievements
Rank 1
answered on 25 Feb 2014, 03:25 PM
Forgot to tell it was wrapped in Phonegap. The error appeared when the APP started and began to load data into ListView
0
Sebastian
Telerik team
answered on 26 Feb 2014, 12:13 PM
Hello Bassanio,

Since you are loading large number of items in the listview, can you check whether endless scrolling or local data virtualization is applicable for your scenario? Thus you should be able to optimize the performance of the listview.

Regards,
Sebastian
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Bassanio
Top achievements
Rank 1
answered on 27 Feb 2014, 04:48 AM
Endliess Scrolling could make the ListView work, even when scrolled to the last row. However, Xcode gave "Terminated due to Memory Errror" (not Memory Pressure this time) when I tried to Filter it.

It only happens to Phonegap when running on iOS7, no problems on iOS6, and of course no problem under desktop Safari.

The most scary part is when you complete development in desktop environment smoothly but suddenly found this problem after wrapped into Phonegap and run on iOS7.

I have attached the Instrument showing the moment "Terminated due to Memory Pressure" appear when debugging on my iPad Air. Thanks!
0
Bassanio
Top achievements
Rank 1
answered on 27 Feb 2014, 05:51 AM
Okay, I have run into some display problem while using filter with endless scrolling.

http://jsbin.com/fomuq/1/edit

Scroll the List View to 2/3 and apply the filter, ummm.....I think I need to find a way to scroll the List View back to top after applying the filter. However, refresh() not do. I found this "kendoMobileApplication.view.scroller.element.find(".km-scroll-container").css("-webkit-transform","");" in another thread but also not working.
0
Petyo
Telerik team
answered on 27 Feb 2014, 09:37 AM
Hi Bassanio,

you can can use the mobile scroller reset method for that purpose.

Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ListView (Mobile)
Asked by
Bassanio
Top achievements
Rank 1
Answers by
Bassanio
Top achievements
Rank 1
Sebastian
Telerik team
Petyo
Telerik team
Share this question
or