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

RadAutoCompleteTextView is terribly slow with ~2000 items on Android #1397

Open csimpi opened 4 years ago

csimpi commented 4 years ago

Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

√ Getting NativeScript components versions information... √ Component nativescript has 6.5.0 version and is up to date. √ Component tns-core-modules has 6.5.1 version and is up to date. √ Component tns-android has 6.5.1 version and is up to date. × Component tns-ios is not installed.

Describe the bug

RadAutoCompleteTextView gets extremely slow when I want to search in a bigger list, like 2000+ items. Searching in 2000 items shouldn't take too much time, but for RadAutoCompleteTextView takes like 30 seconds to get the search results some reason. During this time the whole UI hangs, freezes, can't do anything else.

To Reproduce

https://play.nativescript.org/?template=play-ng&id=yvCdMd Open this on an Android device and start type: "Item". For me, the whole UI hangs for long seconds until I get the results.

Expected behavior

The results should appear immediately without blocking the UI.

Sample project

https://play.nativescript.org/?template=play-ng&id=yvCdMd

Additional context

You might fix the behaviour word in this bug-report template, the right word is behavior.

NickIliev commented 4 years ago

@csimpi moving the issue to the nativescript-ui-feedback repository as the issue seems related to the specific RadAutoCompleteTextView implementation.

Side note: both behaviour and behavior are correct (here)

csimpi commented 4 years ago

@NickIliev Thank you! Are you planning to make the ui-feedback repo opensource? It seems that part a bit behind the whole NS, not really maintained, almost every "Rad****" element has some deal-breaker issue and needs workarounds, fixes, patches, hacks etc.. what's the long-term plan around there?

facetious commented 4 years ago

The playground example that you've attached doesn't freeze for me on Android (LG Nexus 5X, so it's old and slow). Even when I remove your for loop truncation and let it respond with all 2000 items (for just typing "item"), the response is immediate and performant. I can scroll the list without any perceptible lag.

csimpi commented 4 years ago

My Phone is a Samsung Note 8.