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
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.
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.