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
无defaultValue的extjs numberfield_Extjs - Fatal编程技术网

无defaultValue的extjs numberfield

无defaultValue的extjs numberfield,extjs,Extjs,我的模型有一个定义如下的字段 { name: 'ed_price', type: 'number' } 网格面板中的列的编辑器配置为 editor: { xtype: 'numberfield' } 我只需单击一下就在网格上启用了celledit。当我单击此列进行编辑时,我在numberfield中看到一个默认值0。我怎样才能删除它 我在字段定义上尝试了以下配置 defaultValue: null, allowNull: true defaultValue:

我的模型有一个定义如下的字段

{
    name: 'ed_price',
    type: 'number'
}
网格面板中的列的编辑器配置为

editor:  {
     xtype: 'numberfield'
}
我只需单击一下就在网格上启用了celledit。当我单击此列进行编辑时,我在numberfield中看到一个默认值0。我怎样才能删除它

我在字段定义上尝试了以下配置

defaultValue: null,
allowNull: true

defaultValue: undefined

尝试将模型字段设置为
useNull:true
,然后将默认值设置为null

“allowNull”是ExtJS 5中可用的。我已经试过了,如上所述。我以为你用编辑器字段试过了。你有什么办法来测试这种行为吗?