Extjs 5网格同步行渲染问题

Extjs 5网格同步行渲染问题,extjs,Extjs,使用extjs 5.1.0 我的问题是,当我向网格的存储添加值,然后调用store.sync时 插入的行可视地被选中,但我不能选择它进行编辑,也不能选择行进行排序,这只会帮助重新加载网格 这是我的商店: var store = Ext.create('Ext.data.ArrayStore', { model: 'pbxe.module.conference.ConferenceModel', proxy: { type: 'di

使用extjs 5.1.0 我的问题是,当我向网格的存储添加值,然后调用store.sync时 插入的行可视地被选中,但我不能选择它进行编辑,也不能选择行进行排序,这只会帮助重新加载网格

这是我的商店:

    var store = Ext.create('Ext.data.ArrayStore', {
        model: 'pbxe.module.conference.ConferenceModel',

        proxy: {
            type: 'direct',
            api: {
               read:    pbxe._conference.read, 
               create:  pbxe._conference.create, 
               update:  pbxe._conference.update, 
               destroy: pbxe._conference.destroy, 
            },
            reader: {
                rootProperty: 'data',
                totalProperty: 'totalCount',
                successProperty: 'success',
                messageProperty: 'message'
            },      
            writer: {
                writeAllFields: true,
            },
        },
        autoSync: false,
        autoLoad: true,

    });

我们遇到了同样的问题,似乎存在选择模型保留添加到存储的记录的映射的问题,这些记录不能被取消选择

所以用一点蛮力:

//网格/选择模型问题的解决方法 //使用Store.sync添加多个新记录后 //var grid=绑定到此存储的网格。。。 myStore.sync { 范围:本,, 成功:功能批处理,选项{ var sm=grid.getSelectionModel; var records=batch.operations[0].getRecords; 如果选择了sm&&sm {//取消选择不起作用,因为错误会在映射中留下新记录 sm.selected.map={};//清除所选记录映射 } sm.selectrecords; }
}; 你能贴一把小提琴吗?Sencha fiddle在这里: