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