重置表单记录不清除值 - ExtJS 4.2 [英] Reset Form Record Not Clearing Values - ExtJS 4.2

查看:125
本文介绍了重置表单记录不清除值 - ExtJS 4.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在我们的表单面板的关闭页面上,我有一个包含记录的网格面板,其中的记录将被点击,我们正在调用myForm.getForm.reset(),它似乎重置了记录,但表单域中的值本身仍然存在。

  //加载记录
me.down('form')。loadRecord(record);
//关闭
me.down('form')。getForm()。reset()或me.down('form')。reset()

请指示如何在重设记录时清除表单中的值。

解决方案

您是否将 trackResetOnLoad 设置为true表单?如果是这样,你真正想要的是设置为false。


I have a Grid panel containing records which, on-click, will be loaded into a Form panel for editing.

On "close" of our form panel, we're calling myForm.getForm.reset(), which seems to reset the record but the values in the form fields themselves persist.

// Load record
me.down('form').loadRecord(record);
// Close
me.down('form').getForm().reset() or me.down('form').reset()

Please advise how to also clear values in the form upon resetting our record.

解决方案

Do you have trackResetOnLoad set to true for the form? If so, what you really want is it set to false.

这篇关于重置表单记录不清除值 - ExtJS 4.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆