asp.net 是否存在多选 dropDownList?
我想要一个 DropDownList,每个项目旁边都有一个复选框,允许选择多个项目。我做了一些探索,但没有找到任何可以做到这一点的东西,有谁知道这是否可以轻松实现?
我知道可以使用列表框来完成,但更喜欢下拉格式以节省空间。
I'd like to have a DropDownList that has a CheckBox next to each item that would allow multiple to be selected. I did a little poking around but haven't found anything that will do this, does anyone know if this can be easily achieved?
I know it can be done with a listBox, but would prefer the dropdown format to save space.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我从未在任何平台上见过多选 DropDownList。你希望它如何运作?
我确信一些聪明的 JavaScript 可以创建一个。
I've never seen a multi-select DropDownList on any platform. How do you want it to work?
I'm sure some clever javascript could create one.
查看 ASP.NET AJAX 工具包中的 DropDown 控件:它允许您将任意控件放入类似下拉的界面中。我没有尝试过,但我认为在其中放置一个 CheckBoxList 应该可行。
Have a look at the DropDown control from the ASP.NET AJAX toolkit: It allows you to put arbitrary controls into a dropdown-like interface. I didn't try it, but I think that it should work to put a CheckBoxList in there.