Load on Demand Feature

Thread is closed for posting
2 posts, 0 answers
  1. Jin
    Jin avatar
    1 posts
    Member since:
    Mar 2011

    Posted 13 Jul 2016 Link to this post

    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?

  2. Nikolay Tsonev
    Nikolay Tsonev avatar
    340 posts

    Posted 14 Jul 2016 Link to this post


    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

    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
Back to Top