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

4 posts, 0 answers
  1. Tobias
    Tobias avatar
    2 posts
    Member since:
    Sep 2015

    Posted 03 Sep 2015 Link to this post

    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

  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 07 Sep 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Tobias
    Tobias avatar
    2 posts
    Member since:
    Sep 2015

    Posted 07 Sep 2015 in reply to Petyo Link to this post

    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

  5. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 09 Sep 2015 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready