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

kendo-mobile-list-view with k-data-source causing memory leak?

3 Answers 105 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Tobias
Top achievements
Rank 1
Tobias asked on 03 Sep 2015, 12:42 PM

Hi,

I'm using the Mobile ListView Widget in combination with AngularJS and a binding to an observable array. Each time when I update an entry in the observable array via the "set" function (triggered by a button), it seems that a new $scope is created (see attached screenshot from AngularJS Batarang Plugin for Chrome) and never deleted again and this leads also to more and more memory consumption (this is the actual problem for my application).This behavior does not occur with other widgets (e.g. Grid).

I have created a small sample with which this behavior can be reproduced which basically is the same example as in http://docs.telerik.com/kendo-ui/AngularJS/data-source (example on the bottom), but with the additional line:

 <kendo-mobile-list-view k-data-source="gridData"></kendo-mobile-list-view>

 http://dojo.telerik.com/@tobias006/EGUKI/4

(When directly running in the dojo I could not see the same output in the AngularJS scope view from the Batarang plugin, so maybe it has to be run locally)

 Without this line, everything seems to be ok, but when using the Mobile ListView widget with k-data-source the memory problem occurs. Is there a way to prevent this? 

Thanks for any hints,

Regards,

Th

3 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 07 Sep 2015, 07:37 AM

Hello Tobias,

 

thank you for contacting us. This seems like a bug on our side - I am logging it here for a fix.

 

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Tobias
Top achievements
Rank 1
answered on 07 Sep 2015, 03:04 PM

Hi Petyo,

 thanks for looking into this... I hope it can be fixed soon (I don't know if you can deliver any fixes prior to official bugfix releases, because currently my app goes the river because of the memory problem quite quickly - due to frequent updates to the ListView - and I would need to be able to showcase it...). I'd be happy to test any in-between-fix on my side..

Regards,

Tobias

0
Petyo
Telerik team
answered on 09 Sep 2015, 08:00 AM

Hello Tobias,

you may subscribe for updates to the issue in github and apply the change as soon as we release one. I can't provide a concrete timeframe for the fix, though. 

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
Tobias
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Tobias
Top achievements
Rank 1
Share this question
or