【发布时间】:2010-09-10 06:23:13
【问题描述】:
嗨, 我正在使用 extjs 3.2.1 lib,我是 extjs 的新手,
I have implemented combobox with remote with filtering option in the form, i have added forceSelection(true) property to combo for validate the text with store collection and allowblank(false) to combo for enable form save button .
我的问题是 forceSelection 属性仅验证模糊事件上的控件并清除组合文本,如果用户在组合中输入无效文本,则启用保存按钮(因为我只检查了组合的 allowblank(false) ) 在表单中,当他点击保存按钮时,它会在组合中提交无效文本。
我还检查了表单和组合的 isvalid() 方法,在保存事件中它也返回“真”。
如何在这种特定情况下进行验证?
【问题讨论】:
标签: javascript extjs