自动填充问题 [英] Autocomplete Questions
问题描述
在我的自动填充框上调用.Focus()时,它只是突出显示它反对允许我输入它。有没有办法调用一个方法来聚焦并允许键入而不必使用鼠标并单击?
When calling .Focus() on my autocomplete box it just highlights it opposed to allowing me to type in it. Is there any way to call a method that will focus and allow typing opposed to having to use the mouse and click?
此外,我还有一个数据集,用大约10,000条记录填充自动完成。我注意到用这么多记录输入它有很长的延迟时间。有什么方法可以加快速度吗?
Also I have a dataset that is populating the autocomplete with about 10,000 records. I've noticed that there is a long delay time when typing in it with this many records. Any way to speed this up?
推荐答案
在FindControl上使用Focus()方法而不是在silverlight控件上调用Focus。 例如:
Use the Focus() method on FindControl rather than calling Focus on the silverlight control. E.g.:
FindControl(
FindControl(
" MyAutoCompleteBoxName" )。焦点()
"MyAutoCompleteBoxName").Focus()
此外,Beta 2之后在AutoComplete上完成了一些性能工作
,所以希望这对你的场景有所帮助。
Also, there was some performance work done on AutoComplete after Beta 2, so hopefully this will help your scenario.
这篇关于自动填充问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!