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 - undefined item while scrolling #1522

Open timbell opened 3 years ago

timbell commented 3 years ago

Tell us about the problem

RadListView + Angular with grid layout. When scrolling, sometimes the item template is called with an undefined item. I've reproduced in a sample app based on the Hello World template using the current latest NativeScript version (8.0.1) and also in the playground.

The problem appears to be triggered by the presence of cells with different heights, hence the contrived example.

Which platform(s) does your issue occur on?

Platform: Android - Accelerated Nougat emulator, real android 11 and the playground

Please provide the following version numbers that your issue occurs with:

nativescript-ui-listview - 9.1.0 CLI - 8.0.1 @nativescript/core - 8.0.1 nativescript-ui-core - 4.0.0 @nativescript/android - 8.0.0 @angular - 11.2.9

Please tell us how to recreate the issue in as much detail as possible.

To reproduce, start the app and scroll (slowly is best) in the listview. Occasionally an error will appear in the console:

JS: ERROR TypeError: Cannot read property 'text' of undefined

The sample app also records the times that the item is undefined and displays this count in the header.

The problem leads to empty cells being displayed in the grid.

Here's an animated gif showing the problem happening: listview-bug

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

Please see the app in the playground: link

jessorlisa commented 3 years ago

Same here :( - occasionally, difficult to reproduce ...

felixkrautschuk commented 3 years ago

@timbell @jessorlisa could you try nativescript-ui-listview 9.0.4?

I also have issues using the RadListView component on Android since version 9.1.0 + https://github.com/ProgressNS/nativescript-ui-feedback/issues/1508

jessorlisa commented 3 years ago

@felixkrautschuk I ended up with a workaround, like item ? item.name : '' - this problem has been occurring since we've been using RadListView, if only occasionally and not properly reproducable.

timbell commented 3 years ago

@felixkrautschuk I' do the same as @jessorlisa . It works around the problem satisfactorily.

meightythree commented 2 years ago

Same issue.

wouter-willems commented 2 years ago

I also have the same issue