Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RadListView ScrollToIndex with grouping Crashes ios #1043

Closed
dottodot opened this issue Mar 7, 2019 · 3 comments
Closed

RadListView ScrollToIndex with grouping Crashes ios #1043

dottodot opened this issue Mar 7, 2019 · 3 comments

Comments

@dottodot
Copy link

dottodot commented Mar 7, 2019

I know this has been raised before but I cannot get scrollToIndex to work without my app crashing.

Even settimeout doesn't work for me.

If I have a list of 20 items (3 of which are visible on the screen at once) anything upto the index of 4 is ok anything above that the app crashes.

If it's any help scrollByAmount is fine for example

scrollWithAmount(index * height)

trouble is my items all have different heights so it would not be accurate doing this.

I think the problem is that the indexing is getting affected by the grouping.

If you look at the following example

https://play.nativescript.org/?template=play-ng&id=JwNDWX&v=2

Try to scroll to index 10 and you'll get an error or ERROR: ERROR Error: attempt to scroll to invalid index path change it to something lower such as 4 and it works.

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

  • Progress NativeScript UI version: 5.2.0
  • CLI: 5.2.1
  • Cross-platform modules: 5.2.2
  • Runtime(s): 5.2.0
@tsonevn
Copy link

tsonevn commented Mar 8, 2019

Hi @dottodot,
Thank you for the provided sample project. I was able to recreate the issue. I will mark it as a bug and we will investigate it further.

@dottodot
Copy link
Author

dottodot commented Mar 8, 2019

OK thanks, I'm not sure if it related but tkListViewHeader doesn't display when grouping is enabled, it seems like grouping has a few strange side effects. I've updated the sample project so you can see that as well. And there is this issue regarding it #950

@elena-p
Copy link
Contributor

elena-p commented May 13, 2019

Fixed with 6.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants