Hey everybody,
I'm experimenting with the Kendo Forms and I recognized that building/rendering the form with razor all labels showing the property name itself instead the display name I set in the model.
@(Html.Kendo().Form<Provider>()
.Name("form")
.Validatable(v =>
{
v.ValidateOnBlur(true);
v.ValidationSummary(vs => vs.Enable(false));
})
.Items(items =>
{
items.Add().Field(x => x.Description).Editor(x => x.Editor());
items.Add().Field(x => x.Url);
})
)
My model has set a display name for the properties.
public class Provider
{
[Display(Name = "Kurzbeschreibung")]
public string Description { get; set; }
[Display(Name = "Link zur Website")]
public string Url { get; set; }
}