AutoCompleteExtender-显示项目,但禁用用户选择 [英] AutoCompleteExtender - show items, but disable user selection

查看:98
本文介绍了AutoCompleteExtender-显示项目,但禁用用户选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI队
我想使用类似AutoCompleteExtender的东西,但是,如果用户单击某个项目,则我不希望该值进入文本框.

没人知道怎么做吗?
谢谢
Difin

HI Team
I want to use something like the AutoCompleteExtender, however, if the user clicks on an item, I don''t want that value to go into the text box.

Doesn''t anyone know how to do this?
Thanks
Difin

推荐答案

AutoCompleteExtender用于显示相关结果,并在用户单击时将其填充到TextBox中.
AFAIK,我认为AutoCompleteExtender控件无法满足您的要求.

您需要创建自己的自定义控件.从javascript(或使用jQuery)调用您的Web服务,并将其显示在文本框下方的div中.
AutoCompleteExtender is designed for showing the related results and when user clicks, fill it into TextBox.
AFAIK, I dont think your requirement can be fulfilled by the AutoCompleteExtender control.

You need to create your own custom control. Call your webservice from javascript( or using jQuery) and display it into the div that is below the textbox


这篇关于AutoCompleteExtender-显示项目,但禁用用户选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆