NativeScript / NativeScript/NativeScript

Add event to ListView to know when it is fully loaded and ready to scroll

Open
#8,297 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature list-view
Dominant language
TypeScript
Stars
25.7k
Forks
1.7k
Avg merge
1d 5h
Merged PRs (30d)
35

Description

Is your feature request related to a problem? Please describe.
If I want to show a ListView and have it start on a certain position, let's say index 4, there is currently no way to know when the ListView is ready to be scrolled. The loaded event fires immediately when the page opens or while the ListView is still loading all the templates. Scrolling while this is happening will not work.

Right now I have to listen to the loaded event of the item template, as well as use a certain timeout of ~200 miliseconds before it's possible to scroll. This is terrible of course.

Describe the solution you'd like
Some event that we can listen on to know when all templates of the ListView are fully initialized and scrolling or any other ListView manipulation is ready to be done. Similar to RadListView which has a DataPopulated event, which may or may not be what we need.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the ListView loaded event and the item-template initialization mentioned in the report. Compare the requested behavior with RadListView's DataPopulated event, then verify that the new event fires only when templates are fully initialized and scrolling or other ListView manipulation is ready.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.