简体   繁体   English

ExtJS 3.4 ::网格中的组合框-打开时错误地选择了第一个值

[英]ExtJS 3.4 :: Combobox in grid - wrongly selecting first value when opened

Using ExtJS 3.4 使用ExtJS 3.4

I have a EditorGridPanel and columns with ComboBoxs. 我有一个EditorGridPanel和带有ComboBoxs的列。

Just noticed that if I three options, say... 只是注意到,如果我有三个选择,请说...

  • Dog
  • Cat
  • Mouse 老鼠

...and Mouse is the saved value, then when I click the dropdown, my field gets populated with Dog - without me selecting it. ...并且鼠标是已保存的值,然后当我单击下拉列表时,我的字段将填充“狗”-而无需我选择它。 Whatever the options, my field gets populated with the first value. 无论选择哪种方式,我的字段都会填充第一个值。

This only happens after an initial page load and the first time I click a combobox. 仅在初始页面加载后和第一次单击组合框后才会发生这种情况。 Subsequent combo clicks do not elicit this behavior. 随后的组合单击不会引发此行为。

Anyone experienced anything like this? 任何人都经历过这样的事情吗? Any clue? 有什么线索吗?

Thanks 谢谢

Paul 保罗

autoSelect : false

for combobox component will solve this. 对于组合框组件将解决此问题。 Read ExtJS Documentation for more details. 有关更多详细信息,请阅读ExtJS文档。

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

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