如何在网格中发送唯一修改的列?

时间:2013-09-02 06:40:47

标签: extjs

Extjs 4.2

Ext.create('Ext.grid.Panel', {
    store:Ext.create('Ext.data.Store', {
        fields:['id', 'subject', 'content'],
        idProperty:'id',
        autoSync:true,
        proxy:{
            api:{update:'update'}
        }
    }),
    columns:[
        {text:'subject', dataIndex:'subject'},
        {text:'content', dataIndex:'content'}
    ]
});

当“主题”列发生变化时,商店代理会发送带有“内容”的数据,但我只需要“主题”。

1 个答案:

答案 0 :(得分:0)

也许store.sync()可以解决问题。在Extjs 3.4中有一个函数store.save我找不到4.2版本中的等价方法

相关问题