Dask
Dask

Reputation: 61

How do I reset Nativescript RadListView LoadOnDemand after disabling it?

How do I reset/reactivate the RadListView load on demand feature after deactivating it by calling list.notifyLoadOnDemandFinished(true)?

Just calling the same function with false doesn't seem to do the trick, neither does calling list.notifyPullToRefreshFinished(true).

Upvotes: 1

Views: 190

Answers (1)

Manoj
Manoj

Reputation: 21908

You may directly operate on loadOnDemandMode attribute to enable / disable load on demand.

Setting loadOnDemandMode to None will disable it, setting it back to Auto will start triggering load on demand event again.

Upvotes: 2

Related Questions