This is a migrated thread and some comments may be shown as answers.

Load on Demand Feature

1 Answer 135 Views
ListView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jin
Top achievements
Rank 1
Jin asked on 13 Jul 2016, 05:07 PM

I played around with nativescript angular for a bit and I have observed a few quirks which i have questions on, specifically with the load on demand feature:

I am currently using angular2 with nativescript.

1. Do the load on demand template work for Auto mode? I can't seem to get it to show in auto mode

2. I tried to use the load of demand template through the directive, following the sample here but with a different text. I noticed the original Load More text still exist, and if i do not set a height for my layout container, it will automatically follow the itemHeight set on the ListViewLinearLayout. Is this intended behavior?

3. In auto mode, the activity indicator can't really be scrolled to and seen, especially when a large itemHeight is set. eg. 500. The activity indicator follows the itemHeight and is vertically aligned to the center. This might work if the item uses a default height, but would not work if we are setting an itemHeight.

4. Not setting itemHeight causes really bad flickers when scrolling through the list. I think it's got to do with the fact that it is virtualized but is this intended behavior?

1 Answer, 1 is accepted

Sort by
0
Nikolay Tsonev
Telerik team
answered on 14 Jul 2016, 08:25 AM
Hello,

Thank you for your interest in NativeScript.

When your are using ListView, the content for every item will be displayed using the style and Layouts from the template automaticly. 
In regard to your another question, you could set specific height and width for the ActivityIndicator and the view will no longer take the height of its parent. Further more I would suggest you to use AbsoluteLayout, which would allowed you to set specific position of its childs or to use GridLayout. in the ListView template as main Layout.

However it would help if you could give the link to the sample  your are using or to provide me sample project where those problems have been reproduced.

I hope this helps

Regards,
nikolay.tsonev
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ListView
Asked by
Jin
Top achievements
Rank 1
Answers by
Nikolay Tsonev
Telerik team
Share this question
or