This is a migrated thread and some comments may be shown as answers.

Large listview performance and data-view events

1 Answer 83 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andres
Top achievements
Rank 1
Andres asked on 20 Jan 2014, 09:47 PM
Hi,
I have a big listview which is getting data from a local JSON (around 900 records).

To be able to show all those records, i group them by first letter (A, B, C), so the user doesnt see so many records at once.

so, in data-show="app.mylistview.showData"
i do
showData: function (e) {
            
            var filters = {
 field: "Name",
 operator: "startswith"
};
filters.value = "A";
this.model.ataDataSource.filter(filters);
}

And then the user select A, B, C.. etc.

OK, the think is that on device (in simulation works fine) it takes 2-3 seconds to render again the view if i come back the this listview.
is there no cache? is it data-show event that is ordering again the json array?

thanks

1 Answer, 1 is accepted

Sort by
0
Andres
Top achievements
Rank 1
answered on 13 Feb 2014, 09:17 AM
HI,
Stupid question. I was using data-show instead of data-init.
Tags
General Discussions
Asked by
Andres
Top achievements
Rank 1
Answers by
Andres
Top achievements
Rank 1
Share this question
or