Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Created Feature: Support HTML optgroup in DropDownList [1486]

$
0
0
HTML has an optgroup tag that can be used in a select element; this is supported in all major browsers.
Until now, the ASP.NET DropDownList offers no support for this. The way I see it, there are two possible solutions:
1 - Add a Group property to the ListItem class, which would be used for grouping multiple options together
2 - Add a new GroupedListItem class that inherits from ListItem and add a group property to it
The DropDownList control would need to group all items by their group text (if available) and render them all inside of a optgroup.


copied over from: https://aspnet.codeplex.com/workitem/10318

posted workaround by user: http://weblogs.asp.net/ricardoperes/archive/2013/02/02/asp-net-dropdownlist-with-groups.aspx

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>