Click here to Skip to main content
15,893,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

How we can make drop down list in web form with grouped items (capsulate).

I mean there are plus beside of each group for extending that.

Best regards.
Posted

In ASP.NET, the adequate control with "plus beside of each group" is System.Web.UI.WebControls.TreeView, http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.treeview.aspx[^].

—SA
 
Share this answer
 
Comments
Abhinav S 13-Feb-12 1:36am    
My 5 of course.
Sergey Alexandrovich Kryukov 13-Feb-12 1:38am    
Thank you, Abhinav.
--SA
This link Adding groups to the ASP.NET DropDownList control[^] does not have an expand / collapse structure but it should help you get started.

This[^] should give you an extensible option as well.

ASP.NET DropDownList with OptionGroup support[^] is another neat article.

JQuery can give you one more approach as described here[^].
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 13-Feb-12 1:38am    
Right, my 5. jQuery approach looks pretty good.
--SA
Abhinav S 13-Feb-12 1:41am    
Thank you SA.
masoud_sedighy 14-Feb-12 5:40am    
thanks
I used jquery and it works very good when i open by opera . just one of my problem is, group item will not be showed in fire fox and internet explorer.
please help how i can solve.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900