ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

RadListView not switching templates immediately after data updates #1291

Open ludcila opened 5 years ago

ludcila commented 5 years ago

Tell us about the problem

Using ListView (template changed immediately):

Using RadListView (template changes only after re-rendering the item):

Which platform(s) does your issue occur on?

Tested on Android 7.1.1 and 9.

Sample project

https://play.nativescript.org/?template=play-ng&id=IvGDXo&v=3

tsonevn commented 5 years ago

Hi @ludcila, Try to replace the pure JavaScript Array with ObervableArray, provided by tns-core-modules. Check out the example here.

ludcila commented 5 years ago

Hi @tsonevn,

I have updated the sample code to use an ObservableArray but it doesn't seem to make any difference. https://play.nativescript.org/?template=play-ng&id=IvGDXo&v=6