Hi,
I am using Telerik ASP.NET MVC Extensions 2016.1.111.0. and Razor. The CheckBoxFor control behaves slightly illogical - in one case it shows a label, in another case it does not. See the attached screenshot.
Both parameters are booleans, the difference is that one of the has a DisplayName:
From the model.cs
public bool Dator { get; set; }
[DisplayName("Passerkort 07:30-17:00")]
public bool Passerkort { get; set; }
From the Index.cshtml
@Html.LabelFor(m => m.Dator)
@Html.Kendo().CheckBoxFor(m => m.Dator)
@Html.LabelFor(m => m.Passerkort)
@Html.Kendo().CheckBoxFor(m => m.Passerkort)
The parameter with the DisplayName specified will be displayed with a label attached to the CheckBoxFor, so to get rid of it I have to set .Label("") for that checkbox. Not a big deal, but I think maybe this was not the intention.
Best regards,
Henrik