Unplanned
Last Updated: 12 Jul 2024 21:06 by George
Created by: George
Comments: 0
Category: Checkbox
Type: Feature Request
1

Hi Team,

I would like to request a way to bind a Kendo UI Template to a UI for ASP.NET MVC CheckBox HtmlHelper.  At the moment, it only accepts a boolean, so a string template will not work as expected.

Thank you!

Unplanned
Last Updated: 29 Jun 2022 13:04 by Nathan

Currently, if the field the CheckBoxFor helper is bound to has a custom validation attribute, for example:

[MyCustomValidation(ErrorMessage = "Custom error message.")]
public bool Checkme { get; set; } 

[AttributeUsage(AttributeTargets.Property)]
public class MyCustomValidation : ValidationAttribute, IClientValidatable
{

//...

}

the CheckBox's input does not render a data-val-mycustomvalidation="Custom error message."  attribute.

The standard MVC @Html.CheckBoxFor helper renders the data-val attribute, so it would be nice if the Telerik's CheckBoxFor helper had the same capabilities.

More details: Ticket ID: 1570806