asp.net:组合框或列表框加复选框

发布于 2024-12-07 18:59:29 字数 379 浏览 9 评论 0原文

我需要这样的解决方案:

http://demos. telerik.com/aspnet-ajax/combobox/examples/functionity/checkboxes/defaultcs.aspx

但是,我需要用户能够在此处添加条目。

这样的控制已经存在吗?

它可以是 jquery 或 asp.net,

它也不必是组合框,它可以是列表框。我需要让每个项目旁边都有一个复选框,并且能够为每个条目添加评论。

i need a solution like this:

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/checkboxes/defaultcs.aspx

however, i need the user to be able to add entries in here.

does such a control already exist?

it can be either jquery or asp.net

it also does not have to be a combobox, it can be a listbox. i need to have every item have a checkbox next to it and be able to add a comment for each entry.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

悲喜皆因你 2024-12-14 18:59:29

看一下 DevExpress 组件供应商的 ASPxGridLookup 控件。

ASPxGridLookup 组件允许实现多选 DropDown 功能:

http://demos.devexpress .com/ASPxGridViewDemos/ASPxGridLookup/MultiSelect.aspx

http://www.devexpress.com/example=E3467

http:// /codecentral.devexpress.com/E3467/

通过嵌入的 ASPxGridView 对象具有编辑功能:

http://demos.devexpress.com/ASPxGridViewDemos/GridEditing/EditModes.aspx

Take a look at the ASPxGridLookup control from the DevExpress component vendor.

The ASPxGridLookup component allows the implementation of the multi-select DropDown functionality:

http://demos.devexpress.com/ASPxGridViewDemos/ASPxGridLookup/MultiSelect.aspx

http://www.devexpress.com/example=E3467

http://codecentral.devexpress.com/E3467/

with editing capabilities via the embedded ASPxGridView object:

http://demos.devexpress.com/ASPxGridViewDemos/GridEditing/EditModes.aspx

不喜欢何必死缠烂打 2024-12-14 18:59:29

对我来说,听起来使用 ListBox 运行可能会更好。 Telerik 提供 RadListBox ,它允许您拥有如下所示的复选框 这里

此外,您可以允许进行编辑,例如,双击 此论坛帖子

最后,如果您还想显示评论,那么您可以使用 ItemTemplate 为每个 RadListBoxItem 定义自定义布局,并允许用户编辑主字段和注释字段。

这应该涵盖您需要的一切。

To me it sounds like it might be better for you to run with a ListBox. Telerik offers the RadListBox, which allows you to have checkboxes as seen here.

Additionally, you could allow for edits upon, for example, double-click as is displayed in the source code attached to this forum post.

Finally, if you want to also display the comments then you could use an ItemTemplate to define a custom layout for each RadListBoxItem and allow the user to edit both the main and comment fields.

That should cover everything that you need.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文