Ajax AutoComplete以gridview的形式 [英] Ajax AutoComplete in the form form of gridview
本文介绍了Ajax AutoComplete以gridview的形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个带有ajax autocomplete扩展器的文本框
我正在使用Ajax AutoComplete Extender扩展TextBox并在WebService的帮助下填充它。
我的要求是,我应该得到一个带有多个带标题列的GridView结构,而不是下拉建议。我正在使用asp.net和ajaxcontrol工具包
我怎样才能实现这个目标?
任何帮助或者建议。
I am having a textbox with ajax autocomplete extender
I'm extending TextBox with Ajax AutoComplete Extender and populating it with the help of WebService.
My requirement is that instead of a dropdown suggestion I should get a GridView like structure with multiple columns with headers. I am using asp.net and ajaxcontrol toolkit
How can I achieve this?
Any help or suggestion.
推荐答案
使用AJAX AutoCompleteExtender无法做到这一点。你必须使用jQuery和JSON。 此处 [ ^ ]就是一个很好的例子。它有_renderItem事件,用于自定义列表的HTML。要查看它的使用方法,请单击示例下方的查看源链接。希望它有所帮助。
You can not do that with AJAX AutoCompleteExtender. You will have to use jQuery and JSON for that. Here[^] is a good example of it. It has _renderItem event that is used to customize the HTML of the list. To see how it's used click on "view source" link below the example. Hope it helps.
这篇关于Ajax AutoComplete以gridview的形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文