Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
extjs-更改属性网格中的设置并将其保存到服务器_Extjs_Extjs4_Extjs4.2 - Fatal编程技术网

extjs-更改属性网格中的设置并将其保存到服务器

extjs-更改属性网格中的设置并将其保存到服务器,extjs,extjs4,extjs4.2,Extjs,Extjs4,Extjs4.2,我有一个属性网格Ext.grid.property.grid。我想用它来允许用户更改他的帐户设置。我实现了显示自定义编辑器的功能,但我一直无法将新值保存到服务器 Ext.define('Mb.view.Settings', { extend: 'Ext.grid.property.Grid', alias: 'widget.settings', requires: ['Ext.tab.Panel'], title: Lang._('Options'), s

我有一个属性网格
Ext.grid.property.grid
。我想用它来允许用户更改他的帐户设置。我实现了显示自定义编辑器的功能,但我一直无法将新值保存到服务器

Ext.define('Mb.view.Settings', {
    extend: 'Ext.grid.property.Grid',
    alias: 'widget.settings',
    requires: ['Ext.tab.Panel'],
    title: Lang._('Options'),
    source: {
        username: Mb.user.name,
        email: Mb.settings.email
    },
    sourceConfig:{
        username: {
            displayName: Lang._('Nom d\'utilisateur'),
            editor: 'displayfield'
        },
        email: {
            displayName: Lang._('Adresse email'),
            editor: {
                xtype: 'textfield',
                vtype: 'email'
            }
        }
    }
});

我查找一个事件,该事件允许我触发对服务器的Ajax调用以保存新设置,但我无法在中找到我要查找的内容。

您查找的位置错误:更改的是记录,这意味着您必须查看附加的存储:查看存储的事件,然后使用。

我最后使用了
propertyGrid.getStore().addListener('update',函数(存储、记录、操作、字段){if(operation='edit')…}