我有一个dgrid和一个指定的dstore/内存存储。
_instance = new Memory({
data: {
identifier:'monthNumeric',
items: []
}
});当我点击网格的标题时,我看到排序箭头改变了,但是没有改变网格中的内容。
我通过代码跟踪,ans看到它构建了一个排序对象。然后从_StoreMixins.js调用这段代码
_applySort: function () {
if (this.collection) {
this.set('collection', this.collection);
}
else if (this.store) {
console.debug('_StoreMixin found store property but not collection; ' +
'this is often the sign of a mistake during migration from 0.3 to 0.4');
}
},集合的设置似乎创建了一个排序函数,但实际上它并没有执行它。
这是怎么回事?
(我不知道这是否重要,但同样的存储也与一个DStoreAdapter包装的Dojo图表一起使用。但这里并不是这样使用的)
发布于 2015-12-03 17:59:15
DGrid1.1.0在_started刷新时添加了一个setCollection检查
因为我从来没有在网格上启动过,所以没有设置。一旦我开始创业,一切都会按我的意愿运作。
https://stackoverflow.com/questions/34027892
复制相似问题