I have a store that contains my data. There is one field named "IsSelected" is marked the status of each record. A store have a group function that returns the first character of "Name" field.
I show my data in a listview as below image
When user click on row, I update the value of "IsSelected" field as following:
onListItemTap: function(dataview, index, target, record, e, eOpts) {
var isSelected = record.getData().IsSelected;
if (isSelected === true) {
record.set("IsSelected", false);
} else {
record.set("IsSelected", true);
}
}
But when value of "IsSelected" filed updated, the list is reload and data is automatically sort by this field. Please see image below:
Anyone help me about this? Please tell me the reason and how to fix it. Thanks.