ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

I want to select multiple list from dropdown,is it possible to do so?? I don't want to use listbox or option controls. please help//

Please help me finding out how to select multiple list or value from dropdown. As i have asked to use dropdown only, not listitem or listbox. please help//thank you in advance..

user-image
تم إضافة السؤال من قبل vishal pathak
تاريخ النشر: 2014/04/01
Mukhtar Ahmad
من قبل Mukhtar Ahmad

Yes, you can select multiple list items from a dropdown, you just have to use a for loop for selected items in code.

if u need code then wite me at '

Noor Ali Chagani
من قبل Noor Ali Chagani , Software Development Manager , The Punjab Healthcare Commission (PHC)

In the basic Dropdown, multiple selection of list items are not allowed. you can use jQery Extensions or a third party control to this. or the other way around is You could use the System.Web.UI.WebControls.CheckBoxList control or use the System.Web.UI.WebControls.ListBox control with the SelectionMode property set to Multiple.

 

There is also an avilable Code project example for MultiSelection DropDown.  

http://www.codeproject.com/Articles/24205/MultiSelect-Dropdown-Control

 

Hopefully it will help

Amen Ayach
من قبل Amen Ayach , .Net Team Leader, Project Coordinator and Senior Solution Designer , Netways

There a simple, elegant and smooth solution using one of most successful libraries; the MultiSelect jQuery extension.

 

Check this for details.

 

 

Rameez Ahmed Sayad
من قبل Rameez Ahmed Sayad , .Net Consultant , Proximus Luxembourg

If the dropdown is meant to be just from UI perspective , you can have listbox with checkboxes inside , because that makes more sense , Put the listbox in div (display:none) and on the click of what appears to be a dropdown , make this (display:block and z-index:1) just below the div. You can bring the scroll through css. 

If your talking about the <select> with <option> , multiple selection is possible , but the user will have to press ctrl for that , don't think that would be a good user experience.

Tamer Ahmed El Khawas
من قبل Tamer Ahmed El Khawas , Senior Software Developer / System Analyst , health insights

I'm not sure what is the technology use are using, in case you are using asp.net, this link should give you an idea on how to select multiple values from a DropDown List

http://www.codeproject.com/Articles/18063/Multi-select-Dropdown-list-in-ASP-NET

 

المزيد من الأسئلة المماثلة