未找到组合框自动完成条目,但位于数据源和 DDL 中
论坛里查了一下这个,没看到。希望我不是瞎子。
有一个具有自动完成功能的组合框 (CB)(AutoCompleteMode:Suggest、AutoCompleteSource:ListItems),其中包含大约 4,500 个项目。有 2 个屏幕,第一个可以添加到数据源,另一个显示 CB。有时,当我在屏幕 1 上添加然后转到屏幕 2(添加后刷新 CB 数据源)时,我在 TypeAhead 中看不到新添加的项目。当我调试时,我可以在数据源中看到该项目,更棒的是,当我使用 CB 上的下拉菜单时,我可以看到该项目。
因此,总而言之,该项目在使用自动完成时不会显示(图 1),但在使用下拉菜单时会显示(图 2)。更令人困惑的是,在自动完成和下拉列表之间来回一两分钟后,该项目最终将显示在自动完成中(不会刷新数据)。
想法?
(嗯,我有两张小照片,完美详细地展示了我的问题,但由于我是菜鸟,我无法发布它们。希望您能明白!)
谢谢 特洛伊
Looked around the forum for this, but didn't see it. Hopefully I'm not blind.
Have a ComboBox (CB) with AutoComplete (AutoCompleteMode:Suggest, AutoCompleteSource:ListItems) that has roughly 4,500 items. There are 2 screens, 1 that can add to the DataSource and the other that displays the CB. Sometimes when I add on Screen 1 and then go to Screen 2 (I refresh the CB DataSource after the add) I do not see the newly added item in the TypeAhead. When I debug, I can see the item in the DataSource and, here's the kicker, I can see the item when I use the drop down on the CB.
So, to sum up, the item doesn't display when using Autocomplete (pic 1), but does display when using the drop down (pic 2). To make it more confusing, the item will eventually show up in the AutoComplete after a minute or two of going back and forth between AutoComplete and the Drop Down (no refreshing of the data takes place).
Thoughts?
(Well, I have 2 small pics that show my issue in perfect detail, but since i'm a noob, i can't post them. Hope you can get the idea!)
Thank you
Troy
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我很久以前就这么做过。它对我来说效果很好。请记住,在我的例子中它是文本框。
希望有帮助。
I did it long back. It worked fine for me. Remember in my case it was textbox.
Hope it helps.