Nativescript-ui-feedback: ui-listview load-on-demand auto scroll to top

Created on 21 Jun 2018  路  5Comments  路  Source: ProgressNS/nativescript-ui-feedback

when loading items on demand in RadListView. adding more item automatically scrolls to the top.
here is playground demo:https://play.nativescript.org/?template=play-ng&id=E2d9wx&v=2

backlog bug listview android high

Most helpful comment

@cnoter is right.
Even though I wasusing
get dataItems(): ObservableArray<OrderInfo> { return this._dataItems; }
I was facing the same issue because I was filtering the data and was making a new Observable array after that. I have stopped that and it fixed the issue.

All 5 comments

I think it happens when we use other than sample code's style

public get dataItems(): ObservableArray<DataItem> {
        return this._dataItems;
    }

if we change this._dataItems's reference(like create new one)
or
use other than ObservableArray

then, in Android
it's automatically scrolls to top,

it is really annoying,
because I usually use Apollo-Angular style,
and dataItem in this style can be changed automatically(synced with cache)

@cnoter is right.
Even though I wasusing
get dataItems(): ObservableArray<OrderInfo> { return this._dataItems; }
I was facing the same issue because I was filtering the data and was making a new Observable array after that. I have stopped that and it fixed the issue.

@nmongiya so now I'm just using nativescript listview(not rad listview) :)

+1 Reported via t-1340205 @VladimirAmiorkov @tgpetrov let me know if you need a reproducible scenario

I'm using RadListView in my proyect and I have problems with this Issue.

Was this page helpful?
0 / 5 - 0 ratings