简体   繁体   English

Extjs日期字段行编辑失去价值

[英]Extjs Date field Rowediting Losing It's Value

I have a grid with RowEditing enabled with some dateFields and when I try to edit, date field value gets blanked. 我有一个启用了RowEditing并带有一些dateFieldsgrid ,当我尝试编辑时,date字段的值被遮盖了。 Forcing the user to select the date again. 强制用户再次选择日期。 Though upon cancel edit, old values are displayed. 尽管在取消编辑时,仍显示旧值。 attached screenshot dateFieldGetBlanked 附加的截图dateFieldGetBlanked

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

This behavior is not replicable in cellediting , it works fine there. 这种行为在cellediting是不可复制的,在cellediting可以正常工作。

Any idea whats causing this problem in rowediting , any solutions for this? 知道是什么rowediting导致此问题, rowediting任何解决方案?

type: 'date' inside modal fields array should fix it. 类型:模态字段数组中的“日期”应该修复它。

Here is behaviour replicated. 这是行为复制。 Fiddle with type:date : https://fiddle.sencha.com/#view/editor&fiddle/2nj0 Fiddle with datefield as string: https://fiddle.sencha.com/#view/editor&fiddle/2nj1 小提琴与type:datehttps://fiddle.sencha.com/#view/editor&fiddle/2nj0拨弄的DateField为字符串: https://fiddle.sencha.com/#view/editor&fiddle/2nj1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM