如何缩小组合框中的搜索范围 [英] How to narrow down the search in combobox
本文介绍了如何缩小组合框中的搜索范围的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在使用VS2008和ASP.NET 3.5构建的网站中使用AJAX组合框
我已经绑定了组合框到sqlsource,在运行时它可以获取60条记录。
我的问题是,当我开始输入组合框时,我的搜索永远不会缩小。即使是我写了全名,组合框建议我正确输入,但每次我在组合框上看到超过40条记录。
什么我想要的是:
如何在AJAX COMBOBOX中实现在键入时搜索。
解决方案
这是一个简单的要点:如果组合框列表的内容太大而您需要在其中执行搜索,则会严重滥用此控件。是的,100%。检查你的UI设计,这是唯一的方法。
-SA
Ok ,所以根据你在评论中提出的问题,你会寻求Autosuggest文本框控件,而不是组合框。
给你:
自动填充文本框控件 [ ^ ]
自动完成文本框 [ ^ ]
在C#中创建自动完成文本框控件 [ ^ ]
C#中的自动完成文本框 [ ^ ]
如果需要,请查看此处 [ ^ ] for更
hey friends,
I am using a AJAX combobox in my website built with VS2008 and ASP.NET 3.5
I have bound the combobox to a sqlsource and on run time it fetches 60 records.
My problem is that when i start typing in the combobox,my search never gets narrowed.Even if i write the full name,the combobox suggests me the correct entry but everytime i see more than 40 records on the combobox.
What i want is :
HOW TO IMPLEMENT "SEARCH WHILE TYPING" IN AJAX COMBOBOX.
解决方案
Here is a simple point: if a content of a combo box list is so big that you need to perform search in it, you are heavily abusing this control. Yes, 100%. Review your UI design, this is the only way to proceed.
—SA
Ok, so based on what you ask in comments, you seek for Autosuggest textbox control and not a combobox.
Here you go:
Autocomplete Textbox Control[^]
AutoComplete TextBox[^]
Create an AutoComplete TextBox Control in C#[^]
AutoComplete TextBox in C#[^]
If needed, look here[^] for more.
这篇关于如何缩小组合框中的搜索范围的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文