/// <summary></summary>
 public static MvcHtmlString ListBoxFor <TModel, TProperty>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, IEnumerable <string> selectList, object htmlAttributes = null)
 {
     return(htmlHelper.ListBoxFor(expression, HelperUtils.ToSelectListItem(selectList), htmlAttributes));
 }
 /// <summary></summary>
 public static MvcHtmlString ListBoxFor <TModel, TProperty, K, V>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, IDictionary <K, V> selectList, IDictionary <string, object> htmlAttributes)
 {
     return(htmlHelper.DropDownListFor(expression, HelperUtils.ToSelectListItem(selectList), htmlAttributes));
 }
 /// <summary></summary>
 public static MvcHtmlString ListBox(this HtmlHelper htmlHelper, string name, IEnumerable <string> selectList, object htmlAttributes = null)
 {
     return(htmlHelper.ListBox(name, HelperUtils.ToSelectListItem(selectList), htmlAttributes));
 }
 /// <summary></summary>
 public static MvcHtmlString ListBox <K, V>(this HtmlHelper htmlHelper, string name, IDictionary <K, V> selectList, object htmlAttributes = null)
 {
     return(htmlHelper.ListBox(name, HelperUtils.ToSelectListItem(selectList), htmlAttributes));
 }
        /// <summary></summary>
        public static MvcHtmlString EnumRadioListFor <TModel, TEnum>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TEnum> > expression, object htmlAttributes = null)
        {
            IDictionary <string, string> selectList = OrionUtils.EnumToDictionary <TEnum>();

            return(RadioListFor(htmlHelper, expression, HelperUtils.ToSelectListItem(selectList), htmlAttributes));
        }
 /// <summary></summary>
 public static MvcHtmlString DropDownListFor <TModel, TProperty>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, IEnumerable <string> selectList, string optionLabel, IDictionary <string, object> htmlAttributes)
 {
     return(htmlHelper.DropDownListFor(expression, HelperUtils.ToSelectListItem(selectList), optionLabel, htmlAttributes));
 }
 /// <summary></summary>
 public static MvcHtmlString RadioList <K, V>(this HtmlHelper htmlHelper, string name, IDictionary <K, V> selectList, IDictionary <string, object> htmlAttributes)
 {
     return(RadioList(htmlHelper, name, HelperUtils.ToSelectListItem(selectList), htmlAttributes));
 }
 /// <summary></summary>
 public static MvcHtmlString BoolRadioList(this HtmlHelper htmlHelper, string name, object htmlAttributes = null)
 {
     return(RadioList(htmlHelper, name, HelperUtils.GetBoolSelectListItem(), htmlAttributes));
 }
 /// <summary></summary>
 public static MvcHtmlString CheckboxListFor <TModel, TProperty>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, IEnumerable <string> selectList, IDictionary <string, object> htmlAttributes)
 {
     return(CheckboxListFor(htmlHelper, expression, HelperUtils.ToSelectListItem(selectList), htmlAttributes));
 }
Пример #10
0
 /// <summary></summary>
 public static MvcHtmlString BoolRadioList(this HtmlHelper htmlHelper, string name, string trueLabel, string falseLabel, IDictionary <string, object> htmlAttributes)
 {
     return(RadioList(htmlHelper, name, HelperUtils.GetBoolSelectListItem(trueLabel, falseLabel), htmlAttributes));
 }
Пример #11
0
 /// <summary></summary>
 public static MvcHtmlString RadioList(this HtmlHelper htmlHelper, string name, IEnumerable <int> selectList, object htmlAttributes = null)
 {
     return(RadioList(htmlHelper, name, HelperUtils.ToSelectListItem(selectList), htmlAttributes));
 }
Пример #12
0
 /// <summary></summary>
 public static MvcHtmlString CheckboxListFor <TModel, TProperty, K, V>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, IDictionary <K, V> selectList, object htmlAttributes = null)
 {
     return(CheckboxListFor(htmlHelper, expression, HelperUtils.ToSelectListItem(selectList), htmlAttributes));
 }
Пример #13
0
 /// <summary></summary>
 public static MvcHtmlString CheckboxList(this HtmlHelper htmlHelper, string name, IEnumerable <string> selectList, IDictionary <string, object> htmlAttributes)
 {
     return(CheckboxList(htmlHelper, name, HelperUtils.ToSelectListItem(selectList), htmlAttributes));
 }
 /// <summary></summary>
 public static MvcHtmlString DropDownList(this HtmlHelper htmlHelper, string name, IEnumerable <string> selectList, string optionLabel, object htmlAttributes = null)
 {
     return(htmlHelper.DropDownList(name, HelperUtils.ToSelectListItem(selectList), optionLabel, htmlAttributes));
 }
Пример #15
0
 /// <summary></summary>
 public static MvcHtmlString BoolRadioListFor <TModel, TBool>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TBool> > expression, string trueLabel, string falseLabel, object htmlAttributes = null)
 {
     return(RadioListFor(htmlHelper, expression, HelperUtils.GetBoolSelectListItem(trueLabel, falseLabel), htmlAttributes));
 }
 /// <summary></summary>
 public static MvcHtmlString DropDownList <K, V>(this HtmlHelper htmlHelper, string name, IDictionary <K, V> selectList, string optionLabel, IDictionary <string, object> htmlAttributes)
 {
     return(htmlHelper.DropDownList(name, HelperUtils.ToSelectListItem(selectList), optionLabel, htmlAttributes));
 }
Пример #17
0
 /// <summary></summary>
 public static MvcHtmlString BoolRadioListFor <TModel, TBool>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TBool> > expression, IDictionary <string, object> htmlAttributes)
 {
     return(RadioListFor(htmlHelper, expression, HelperUtils.GetBoolSelectListItem(), htmlAttributes));
 }