c# - Alphabetically Ordering a SelectList in MVC -
problem selectlist might have data(plus it's format [ford iv 200 xyx]) in want retire(by displaying records has bit value of true in it's 3rd column need figure out how do), big problem if user adds in ford display way @ bottom of drop down messy , overlooked ideas?
p.s. added jquery tags in case possible solution since able use in project.
edit - 3rd column bit value filter here's solution
you use orderby
extension method:
<%: html.dropdownlistfor( x => x.modelid, new selectlist(model.vehiclemodels.orderby(x => x.name), "id", "name"), "-- select model --" ) %>
Comments
Post a Comment