Exemple #1
0
 protected override void BuildControl(System.Web.Mvc.TagBuilder builder, Products.CustomFieldDefinition field, string value, object htmlAttributes, System.Web.Mvc.ViewContext viewContext)
 {
     builder.MergeAttribute("data-toggle", "datepicker");
     base.BuildControl(builder, field, value, htmlAttributes, viewContext);
 }
Exemple #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="tagBuilder"></param>
 internal override void ToMvcHtml(System.Web.Mvc.TagBuilder tagBuilder)
 {
     tagBuilder.MergeAttribute("data-val-length-min", Min.ToString());
     tagBuilder.MergeAttribute("data-val-length-max", Max.ToString());
     tagBuilder.MergeAttribute("data-val-length", ErrorMessage);
 }