使用突出显示文本块自动完成 [英] Autocomplete With Highlighting textblock

查看:86
本文介绍了使用突出显示文本块自动完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试通过突出显示文本块来实现自动完成功能,但到目前为止我还是无法实现



当用户在自动填充"文本框中输入Br时,自动填充需要将项目显示为

Br ain
Br 灰烬
Br assssssi


那么如何实现呢?

在互联网上浏览时,我得到了以下链接
http://www.jeff.wilcox.name/2008/11/highlighting-autocompletebox/ [ ^ ]


但是当尝试显示类似这样的无效结果时

Br ain

约翰


所以在这个
帮助我
在Advance中致谢

Hi,

I am trying to implement autocomplete with highlighting textblock ,but i cant achieve that till now



When the user enters Br in Autocomplete textbox I the autocomplete need to diplay the items as

Brain
Brash
Brassssssi


so how to achiev this ?

While browsing in internet i got the follwing link
http://www.jeff.wilcox.name/2008/11/highlighting-autocompletebox/[^]


But when trying that it''s showing some invalid result like this

Brain
shan
John


so help me in this

Thanks in Advance

推荐答案

此链接中给出的解决方案应该对您有用.
在此处发布一些代码,也许有人可以帮助您设计样式或弄清楚您可能做错了什么.

从我看到的内容中,您搜索BR,然后仅突出显示示例中突出显示的那些字符.
所以我看不到问题.
The solution given in this link should work for you.
Post some code here, maybe someone can help you with the style or figure out what you could be doing wrong.

From what I see posted, you search for BR and you get only those characters highlighted which is what the sample does.
So I dont see the problem.


这篇关于使用突出显示文本块自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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