Ejemplo n.º 1
0
        public static HtmlString CtrlComboBox(this HtmlHelper html, string id, string label, string idList, string columnDataName = "", string viewname = "")
        {
            var comboBox = new CtrlComboBoxModel
            {
                Id             = id,
                Label          = label,
                ViewName       = viewname,
                ColumnDataName = columnDataName,
                IdListRequired = idList
            };

            return(new HtmlString(comboBox.GetHtml()));
        }
Ejemplo n.º 2
0
        public static HtmlString CtrlComboBox(this HtmlHelper html, string id, string label, string columnDataName = "", bool onlyread = false, string classAttribute = "", bool multiple = false)
        {
            var ctrl = new CtrlComboBoxModel
            {
                Id             = id,
                Label          = label,
                ColumnDataName = columnDataName,
                Readyonly      = onlyread ? "disabled" : "",
                ClassAttribute = classAttribute,
                Multiple       = multiple ? "multiple"  : ""
            };

            return(new HtmlString(ctrl.GetHtml()));
        }