【问题标题】:Extjs Date field Rowediting Losing It's ValueExtjs 日期字段 Rowediting 失去它的价值
【发布时间】:2018-11-08 14:08:48
【问题描述】:

我有一个 gridRowEditing 启用了一些 dateFields,当我尝试编辑时,日期字段值被空白。强制用户再次选择日期。尽管在取消编辑时,会显示旧值。 附截图dateFieldGetBlanked

{
    text: 'Quote Date',
    dataIndex: 'quote_date',
    menuDisabled: true,
    xtype: 'datecolumn',
    format:'M d, Y',
    flex: 1,
    editor: {
        xtype : 'datefield', 
        allowBlank : false
    }
}

这种行为在cellediting 中是不可复制的,在那里可以正常工作。

知道是什么导致rowediting 出现此问题,有什么解决方案吗?

【问题讨论】:

    标签: extjs datefield roweditor


    【解决方案1】:

    type: 'date' 在模态字段数组中应该可以修复它。

    这是复制的行为。 摆弄type:datehttps://fiddle.sencha.com/#view/editor&fiddle/2nj0 将日期字段作为字符串摆弄:https://fiddle.sencha.com/#view/editor&fiddle/2nj1

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-09-20
      • 1970-01-01
      • 2013-03-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多