【问题标题】:EditorGridPanel : Error Ext.reg is not a functionEditorGridPanel:错误 Ext.reg 不是函数
【发布时间】:2013-02-04 08:24:36
【问题描述】:

我尝试使用 EditorGridPanel 在我的网格中添加一个组合框,但我收到一个我无法解决的错误。

错误: Ext.reg 不是函数 Ext.reg('editorgridpanel', Ext.ux.grid.EditorGridPanel);

在我的文件 EditorGridPAnel.js 中我这样做:

Ext.define('Ext.ux.grid.EditorGridPanel' ,{ 扩展:'Ext.grid.GridPanel', 别名:'EditorGridPanel.editorgrid', -- -- -- Ext.reg('editorgridpanel', Ext.ux.grid.EditorGridPanel);

如果有人可以帮助我,请..从星期五开始我尝试解决它,但没有:(

【问题讨论】:

    标签: extjs combobox


    【解决方案1】:

    如果您正在开发 MVC 应用程序并想要创建网格的扩展,然后想要将该网格的实例与 xtype 一起使用。您必须将别名设置为 widget.xtypename。

    Ext.define('AM.view.user.List' ,{ extend: 'Ext.grid.Panel', alias : 'widget.userlist' });

    【讨论】:

    • 我只想说一句话:非常感谢
    • 您好,我有一个问题..我已经完成了您的解决方案,但我有一个问题;
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-10-23
    • 2013-01-04
    • 1970-01-01
    • 2017-05-09
    • 2021-09-14
    • 2021-05-10
    • 2017-02-06
    相关资源
    最近更新 更多