DropDownHelper Class

Template MVC

DropDownHelper Class

Generic class to generate all the DropDownList
Inheritance Hierarchy
SystemObject  Template.Web.Commons.UtilsDropDownHelper

Namespace:  Template.Web.Commons.Utils
Assembly:  Template.Web (in Template.Web.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static class DropDownHelper
Methods
  NameDescription
Public methodStatic memberGetDropdown(IEnumerableString, Int32)
Generate a list of SelectListItem using a normal list of String as key and value
Public methodStatic memberGetDropdownT(IEnumerableT, FuncT, String, FuncT, String, Int32)
Generate a list of SelectListItem
Public methodStatic memberGetDropdownT(IEnumerableT, FuncT, String, FuncT, String, FuncT, String, Char, Int32)
Generate a list of SelectListItem using two attributes of the model as text to display it on the dropdown
Top
See Also