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

Mobile ListView refresh in Angular

1 Answer 92 Views
Integration with other JS libraries
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 25 Sep 2014, 04:13 AM
I've been looking for a solution to this, and what I found is not pretty.  Is there a better way to have a Mobile ListView redraw once you've updated its attached datasource(an array in this case) other than doing this in the controller?

$("#listView").getKendoMobileListView().dataSource.read();

I'm new to angular, but to me the controller having this level of knowledge about the view seems wrong.  


1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 26 Sep 2014, 06:40 AM
Hi David,

usually, the controller scope is the object which provides the datasource to the listview, so it should already hold a reference to the datasource - that would be the "correct" way to refresh it. 

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Integration with other JS libraries
Asked by
David
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or