0

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 enter image description here

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: enter image description here

Anyone help me about this? Please tell me the reason and how to fix it. Thanks.

4

1 回答 1

1

请参阅自动加载

这将迫使您使用Load方法来运行您的商店。

祝你好运,布拉德

于 2013-07-10T16:53:39.507 回答