Infragistics ultrawebgrid 单元格中的自动完成下拉菜单
我想要在编辑模式下的 ultrawebgrid 单元格中自动完成下拉控件,以便用户可以键入数据,并且值会自动填充(如果存在),不应允许无效数据。这可能吗?我不想使用 webcombo,它太重了而且我不需要多列下拉菜单。我想要一个简单的下拉列表,但用户能够像 Google 建议的那样键入,但所有值都缓存在客户端上,每次击键时都不需要往返到服务器。
该控件应类似于以下内容
http://www.asp。 net/AJAX/AjaxControlToolkit/Samples/ComboBox/ComboBox.aspx
谢谢,
RK
I want to an autocomplete dropdown control in the ultrawebgrid cell in edit mode, so user can type the data and value is filled in automatically if exists, invalid data should not be permitted. is this possible? I don't want to use webcombo, it is too heavy and I don't need a multi-column dropdown. I want a simple dropdownlist, but the ability for the user to type just like Google suggest, but all the values cached on the client, no roundtrip to server on each key stroke.
the control should be like the following one
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/ComboBox/ComboBox.aspx
thanks,
RK
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经能够完成你想要的事情了。这是我所做的,但我不知道它是否适用于 Infragistics 包:
1-我下载了 JQuery UI 自动填充文本框
2-我对网站上给出的示例进行了一些修改。
3-我应用了一些东西来修改我的所有下拉列表,其中包含一个名为 XYZ 的类来自动完成。我使用了委托,因此当它在 UI 上生成下拉菜单时,它会自动将其替换为我的自动填充文本框。
抱歉,如果我的英语不完美,它不是我的母语。
这是一些代码(注意:在示例中我没有使用 live() 或 delegate() 函数):
我希望这有帮助
I have been able to accomplish something like what you want. Here is what I did, but I don't know if it works into the Infragistics package:
1- I downloaded the JQuery UI autofill textbox
2- I modified a little bit the sample given on the site.
3- I applied something to modify all my dropdown having a class named XYZ for the auto complete. I used a delegate, so when it generate a dropdown on the UI, it replaces it automatically by my autofill textbox.
Sorry if my english is not perfect, it is not my first language.
here's some code (Note: In the sample I haven't used the live() or delegate() function):
I hope this helped