FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Listview doesn't seem to clear\reset · Issue #1179 · NativeScript/NativeScript · GitHub

Listview doesn't seem to clear\reset #1179

Description

Duplicate: #1235

Okay so I have a listview, and in the changed event of the segbar I reload based on the selection... in the case of "Book" (see video) zero results are returned... but I can't seem to get that reflected in the listview.

I'm setting the observable arrays length back to 0 before I loop through the data with a forEach.

viewModel.resourceItems.length = 0;

http.getJSON(url).then(function (data) {
data.Resources.forEach(function(item){
viewModel.resourceItems.push(item);
});

    pageSize++;
}, function (e) {
    //ERROR
    console.log(e);
});

http://www.screencast.com/t/Uz6P5SPZWvqN

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL