ASP.NET中带有多复选框的下拉列表 [英] dropdownlist with multicheck box in ASP.NET

查看:87
本文介绍了ASP.NET中带有多复选框的下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的Codeproject,

我在ASP.NET中寻找带有multicheckbox的dropdownlist.我想将下拉列表框自定义为多复选框,但是我没有得到成功的结果.关于相同请帮我.

谢谢与问候
Rupesh Kumar Sharma
邮件:[已删除电子邮件]

Dear Codeproject,

I am looking for dropdownlist with multicheck box in ASP.NET. I want to customize dropdownlist box to multi check box, but I am not getting successfull result. Please help me regarding to same.

Thanks & Regards
Rupesh Kumar Sharma
mail: [Email Removed]

推荐答案

您好,对此没有控制权,您可以为此使用复选框列表.

如果只需要ddl类型,则必须为此自定义控件或功能.我已经做到了,但是我不能为此共享代码.

请按照以下过程操作:

1.一个文本框和一个图像-位置绝对的图像.将两者都放在一个
Hi, there is no control for this, you can use check box list for this.

if you want only ddl type then you have to make a custom control or functionality for this. I have made this but i can''t share code for this.

follow below process:

1. one textbox and one image - image with position absolute. take both in one
<table><tbody><tr><td></td></tr></tbody></table>



2.取得一个复选框列表,并将其与值绑定.

3.在单击文本框和图像时都调用JS函数,以在选择后显示列表和隐藏列表.

这将有助于找到您的解决方案,这将需要一些时间,但您会学到新的东西.要有信心,并尝试做到这一点. :-)

抱歉,没有共享代码.



2. Take one check box list and bind this with values.

3. call JS function on click of textbox and image both, to show list and hide list after selection.

it will help to find your solution, it will take some time but you will learn a new thing. Be confident and try to make this. :-)

Sorry for not sharing the code.


根据您的需求使用自定义下拉菜单,我认为您需要相同的telerik控件.请参考此链接:-

http://msdn.microsoft.com/en-us/library/system. windows.forms.checkedlistbox.aspx [ ^ ]

由于我们不知道您的要求,因此建议您使用 CheckedListBox
For using a customized dropdown according to your needs I think you need telerik controls for the same. Please refer this link:-

http://msdn.microsoft.com/en-us/library/system.windows.forms.checkedlistbox.aspx[^]

As we don''t know your requirement, so there is a suggestion to use a CheckedListBox


这篇关于ASP.NET中带有多复选框的下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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